From 86a958d3aa04a5928484d16b27a4d3eea39142e4 Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 23 Oct 2012 15:12:54 -0400 Subject: Core: Update :focsable and :tabbable to handle parents with no height/width, but visible overflow. Fixes #8643 - :focusable pseudo-selector does not find elements if parent has 0x0 dimension. --- tests/unit/core/core.html | 5 +++++ tests/unit/core/selector.js | 12 ++++++++++++ 2 files changed, 17 insertions(+) (limited to 'tests/unit/core') diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html index e259f3270..41c8db827 100644 --- a/tests/unit/core/core.html +++ b/tests/unit/core/core.html @@ -112,6 +112,11 @@ . +
+ + +
+
.
diff --git a/tests/unit/core/selector.js b/tests/unit/core/selector.js index 7876cdd07..f30ad17be 100644 --- a/tests/unit/core/selector.js +++ b/tests/unit/core/selector.js @@ -157,6 +157,12 @@ test("focusable - area elements", function() { isNotFocusable('#areaNoImg', 'not associated with an image'); }); +test( "focusable - dimensionless parent with overflow", function() { + expect( 1 ); + + isFocusable( "#dimensionlessParent", "input" ); +}); + test("tabbable - visible, enabled elements", function() { expect(18); @@ -236,4 +242,10 @@ test("tabbable - area elements", function() { isNotTabbable('#areaNoImg', 'not associated with an image'); }); +test( "tabbable - dimensionless parent with overflow", function() { + expect( 1 ); + + isTabbable( "#dimensionlessParent", "input" ); +}); + })(jQuery); -- cgit v1.2.3