From 6ce987097e8793bdd140f06931a6908b5debc88c Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Mon, 27 Jul 2015 14:03:43 +0100 Subject: [PATCH 1/2] Visible: Specified new behavior Closes #gh-737 --- entries/visible-selector.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/entries/visible-selector.xml b/entries/visible-selector.xml index c1050ab5..d76e4ec5 100644 --- a/entries/visible-selector.xml +++ b/entries/visible-selector.xml @@ -13,6 +13,7 @@

All option elements are considered hidden, regardless of their selected state.

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.

How :visible is calculated was changed in jQuery 1.3.2. The release notes outline the changes in more detail.

+

jQuery 3 slightly modifies the meaning of :visible (and therefore of :hidden). Starting with this version, elements will be considered :visible if they have any layout boxes, including those of zero width and/or height. For example, br elements and inline elements with no content will be selected by the :visible selector.

From f801180f6983d757b1968be64a958a37eba0c57c Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Mon, 27 Jul 2015 14:09:51 +0100 Subject: [PATCH 2/2] Hidden: Specified new behavior Closes gh-737 --- entries/hidden-selector.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/entries/hidden-selector.xml b/entries/hidden-selector.xml index 6712c736..3653643e 100644 --- a/entries/hidden-selector.xml +++ b/entries/hidden-selector.xml @@ -18,6 +18,7 @@

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.

During animations to show an element, the element is considered to be visible at the start of the animation.

How :hidden 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 $( elem ).css( "visibility", "hidden" ).is( ":hidden" ) == false). The release notes outline the changes in more detail.

+

jQuery 3 slightly modifies the meaning of :hidden (and therefore of :visible). Starting with this version, elements will be considered :hidden if they don't have any layout boxes. For example, br elements and inline elements with no content will not be selected by the :hidden selector.