diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-01-21 18:03:07 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-01-21 18:03:07 -0500 |
commit | b326225d9087ee8c5648ace3cf88feab0330353d (patch) | |
tree | 43550eebd93622ed67f1192c52fc6f8e5d61dd8e /src/css.js | |
parent | 372e04e78e81cc8eb868c5fc97f271a695569aa5 (diff) | |
download | jquery-b326225d9087ee8c5648ace3cf88feab0330353d.tar.gz jquery-b326225d9087ee8c5648ace3cf88feab0330353d.zip |
Fix failing tests, add support for empty spans in Opera. Supplements #13132, #10406.
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js index c64fdb3a5..585108f1a 100644 --- a/src/css.js +++ b/src/css.js @@ -532,7 +532,9 @@ jQuery(function() { if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.hidden = function( elem ) { - return elem.offsetWidth === 0 || elem.offsetHeight === 0; + // Support: Opera <= 12.12 + // Opera reports offsetWidths and offsetHeights less than zero on some elements + return elem.offsetWidth <= 0 || elem.offsetHeight <= 0; }; jQuery.expr.filters.visible = function( elem ) { |