Skip to content

Commit c000f3f

Browse files
committed
Note that :visible is the opposite of :hidden
Fixes jquerygh-838 Closes jquerygh-848
1 parent 4cd3452 commit c000f3f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

entries/hidden-selector.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
</ul>
1717
<p>Elements with <code>visibility: hidden</code> or <code>opacity: 0</code> are considered to be visible, since they still consume space in the layout. During animations that hide an element, the element is considered to be visible until the end of the animation.</p>
1818
<p>Elements that are not in a document are not considered to be visible; jQuery does not have a way to know if they will be visible when appended to a document since it depends on the applicable styles.</p>
19+
<p>This selector is the opposite of the <a href="/visible-selector/"><code>:visible</code></a> selector. So, every element selected by <code>:hidden</code> isn't selected by <code>:visible</code> and vice versa.</p>
1920
<p>During animations to show an element, the element is considered to be visible at the start of the animation.</p>
2021
<p>How <code>:hidden</code> is determined was changed in jQuery 1.3.2. An element is assumed to be hidden if it or any of its parents consumes no space in the document. CSS visibility isn't taken into account (therefore <code>$( elem ).css( "visibility", "hidden" ).is( ":hidden" ) == false</code>). The <a href="http://blog.jquery.com/2009/02/20/jquery-1-3-2-released/">release notes</a> outline the changes in more detail.</p>
2122
</longdesc>

entries/visible-selector.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<p>Elements are considered visible if they consume space in the document. Visible elements have a width or height that is greater than zero.</p>
1111
<p>Elements with <code>visibility: hidden</code> or <code>opacity: 0</code> are considered visible, since they still consume space in the layout.</p>
1212
<p>Elements that are not in a document are considered hidden; jQuery does not have a way to know if they will be visible when appended to a document since it depends on the applicable styles.</p>
13+
<p>This selector is the opposite of the <a href="/hidden-selector/"><code>:hidden</code></a> selector. So, every element selected by <code>:visible</code> isn't selected by <code>:hidden</code> and vice versa.</p>
1314
<p>All <code>option</code> elements are considered hidden, regardless of their <code>selected</code> state.</p>
1415
<p>During animations that hide an element, the element is considered visible until the end of the animation. During animations to show an element, the element is considered visible at the start at the animation.</p>
1516
<p>How <code>:visible</code> is calculated was changed in jQuery 1.3.2. The <a href="http://blog.jquery.com/2009/02/20/jquery-1-3-2-released/">release notes</a> outline the changes in more detail.</p>

0 commit comments

Comments
 (0)