From b1cdaaa845bb448bf6c5e7569417a4924eb690f4 Mon Sep 17 00:00:00 2001 From: thatcher Date: Fri, 1 Feb 2013 15:35:46 -0500 Subject: [PATCH] found an IE specific error in some styles set for collections visualizations --- build.properties | 2 +- openseadragon.js | 22 +++++++++++++--------- src/drawer.js | 20 ++++++++++++-------- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/build.properties b/build.properties index ad423b01..2ce678e8 100644 --- a/build.properties +++ b/build.properties @@ -6,7 +6,7 @@ PROJECT: openseadragon BUILD_MAJOR: 0 BUILD_MINOR: 9 -BUILD_ID: 96 +BUILD_ID: 97 BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} diff --git a/openseadragon.js b/openseadragon.js index 4f7b0b3f..929c4217 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -1,7 +1,7 @@ /*globals OpenSeadragon */ /** - * @version OpenSeadragon 0.9.96 + * @version OpenSeadragon 0.9.97 * * @fileOverview *

@@ -8977,14 +8977,18 @@ function drawTiles( drawer, lastDrawn ){ }); (function(style){ - style['-webkit-box-reflect'] = - 'below 0px -webkit-gradient('+ - 'linear,left '+ - 'top,left '+ - 'bottom,from(transparent),color-stop(62%,transparent),to(rgba(255,255,255,0.62))'+ - ')'; - style['border'] = '1px solid rgba(255,255,255,0.38)'; - //style['borderRight'] = '1px solid #fff'; + //TODO: IE seems to barf on this, not sure if its just the border + // but we probably need to clear this up with a better + // test of support for various css features + if( SUBPIXEL_RENDERING ){ + style['-webkit-box-reflect'] = + 'below 0px -webkit-gradient('+ + 'linear,left '+ + 'top,left '+ + 'bottom,from(transparent),color-stop(62%,transparent),to(rgba(255,255,255,0.62))'+ + ')'; + style['border'] = '1px solid rgba(255,255,255,0.38)'; + } }(viewer.element.style)); drawer.addOverlay( diff --git a/src/drawer.js b/src/drawer.js index d920a2ce..7331f07b 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -996,14 +996,18 @@ function drawTiles( drawer, lastDrawn ){ }); (function(style){ - style['-webkit-box-reflect'] = - 'below 0px -webkit-gradient('+ - 'linear,left '+ - 'top,left '+ - 'bottom,from(transparent),color-stop(62%,transparent),to(rgba(255,255,255,0.62))'+ - ')'; - style['border'] = '1px solid rgba(255,255,255,0.38)'; - //style['borderRight'] = '1px solid #fff'; + //TODO: IE seems to barf on this, not sure if its just the border + // but we probably need to clear this up with a better + // test of support for various css features + if( SUBPIXEL_RENDERING ){ + style['-webkit-box-reflect'] = + 'below 0px -webkit-gradient('+ + 'linear,left '+ + 'top,left '+ + 'bottom,from(transparent),color-stop(62%,transparent),to(rgba(255,255,255,0.62))'+ + ')'; + style['border'] = '1px solid rgba(255,255,255,0.38)'; + } }(viewer.element.style)); drawer.addOverlay(