mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
This commit is contained in:
parent
1bbe2b1ded
commit
1e1ea2c44f
@ -632,7 +632,7 @@ if ( jQuery.expr && jQuery.expr.filters ) {
|
|||||||
jQuery.expr.filters.hidden = function( elem ) {
|
jQuery.expr.filters.hidden = function( elem ) {
|
||||||
// Support: Opera <= 12.12
|
// Support: Opera <= 12.12
|
||||||
// Opera reports offsetWidths and offsetHeights less than zero on some elements
|
// 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.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
|
(!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
<!-- Test HTML -->
|
<!-- 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 -->
|
<!-- 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>
|
<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">
|
<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="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">
|
<p id="ap">
|
||||||
|
Loading…
Reference in New Issue
Block a user