X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2F_bootstrap.js;h=1fa5f5e3bb6cdf3d305ac6e041efedb69abec2da;hp=fa470ffb35835300bf6b173d239dcd04a38c8210;hb=4e90e78dc97789709ee7404359a5517540c27553;hpb=8f6c203fdaa543c3bca40baea6ae4ddcdf1a77f5 diff --git a/_source/core/_bootstrap.js b/_source/core/_bootstrap.js index fa470ff..1fa5f5e 100644 --- a/_source/core/_bootstrap.js +++ b/_source/core/_bootstrap.js @@ -16,19 +16,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license return; } - // Check is High Contrast is active by creating a temporary element with a - // background image. - - var useSpacer = CKEDITOR.env.ie && CKEDITOR.env.version < 7, - useBlank = CKEDITOR.env.ie && CKEDITOR.env.version == 7; - - var backgroundImageUrl = useSpacer ? ( CKEDITOR.basePath + 'images/spacer.gif' ) : - useBlank ? 'about:blank' : 'data:image/png;base64,'; - + // Check whether high contrast is active by creating a colored border. var hcDetect = CKEDITOR.dom.element.createFromHtml( - '
', CKEDITOR.document ); + '
', CKEDITOR.document ); hcDetect.appendTo( CKEDITOR.document.getHead() ); @@ -36,7 +27,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Catch exception needed sometimes for FF. (#4230) try { - CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ); + CKEDITOR.env.hc = hcDetect.getComputedStyle( 'border-top-color' ) == hcDetect.getComputedStyle( 'border-right-color' ); } catch (e) {