diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-03-23 15:03:06 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-03-30 23:45:17 +0200 |
commit | 6072d150d61655ec07f714e1d58a0bd7baa5ec3f (patch) | |
tree | 97ebfcd10460b6333d8429c6b2e255807409d15e /src/css.js | |
parent | 693f1b537b0a19cda8b7e8f5379bffa5351b8a6e (diff) | |
download | jquery-6072d150d61655ec07f714e1d58a0bd7baa5ec3f.tar.gz jquery-6072d150d61655ec07f714e1d58a0bd7baa5ec3f.zip |
Docs: Update support comments to follow the new syntax
The changes follow the spec proposed in:
https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/css.js b/src/css.js index f8bd8636a..9e673fc18 100644 --- a/src/css.js +++ b/src/css.js @@ -119,14 +119,14 @@ function getWidthOrHeight( elem, name, extra ) { styles = getStyles( elem ), isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - // Support: IE <= 11 only + // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. if ( elem.getClientRects().length ) { val = elem.getBoundingClientRect()[ name ]; } - // Support: IE11 only + // Support: IE 11 only // In IE 11 fullscreen elements inside of an iframe have // 100x too small dimensions (gh-1764). if ( document.msFullscreenElement && window.top !== window ) { @@ -251,7 +251,6 @@ jQuery.extend( { value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); } - // Support: IE9-11+ // background-* props affect original clone's values if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { style[ name ] = "inherit"; @@ -325,7 +324,7 @@ jQuery.each( [ "height", "width" ], function( i, name ) { // Support: Safari 8+ // Table columns in Safari have non-zero offsetWidth & zero // getBoundingClientRect().width unless display is changed. - // Support: IE <= 11 only + // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? |