aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/css.js2
-rw-r--r--test/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js
index 585108f1a..9cd38b287 100644
--- a/src/css.js
+++ b/src/css.js
@@ -534,7 +534,7 @@ if ( jQuery.expr && jQuery.expr.filters ) {
jQuery.expr.filters.hidden = function( elem ) {
// Support: Opera <= 12.12
// Opera reports offsetWidths and offsetHeights less than zero on some elements
- return elem.offsetWidth <= 0 || elem.offsetHeight <= 0;
+ return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
};
jQuery.expr.filters.visible = function( elem ) {
diff --git a/test/index.html b/test/index.html
index cedbb8282..918d7d2d7 100644
--- a/test/index.html
+++ b/test/index.html
@@ -87,7 +87,7 @@
<!-- Test HTML -->
<!-- this iframe is outside the #qunit-fixture so it won't reload constantly wasting time, but it means the tests must be "safe" and clean up after themselves -->
<iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
- <dl id="dl" style="position:absolute;top:-32767px;left:-32767px;width:1px;height:1px">
+ <dl id="dl" style="position:absolute;top:-32767px;left:-32767px;width:1px;">
<div id="qunit-fixture">
<p id="firstp">See <a id="simon1" href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector" rel="bookmark">this blog entry</a> for more information.</p>
<p id="ap">