@@ -88,7 +88,7 @@ test( "data", function() {
88
88
} ) ;
89
89
90
90
test ( "focusable - visible, enabled elements" , function ( ) {
91
- expect ( 18 ) ;
91
+ expect ( 20 ) ;
92
92
93
93
isNotFocusable ( "#formNoTabindex" , "form" ) ;
94
94
isFocusable ( "#formTabindex" , "form with tabindex" ) ;
@@ -108,6 +108,10 @@ test( "focusable - visible, enabled elements", function() {
108
108
isNotFocusable ( "#visibleAncestor-div" , "div" ) ;
109
109
isFocusable ( "#visibleAncestor-spanWithTabindex" , "span with tabindex" ) ;
110
110
isFocusable ( "#visibleAncestor-divWithNegativeTabindex" , "div with tabindex" ) ;
111
+ isFocusable ( "#nestedVisibilityInheritWithVisibleAncestor" ,
112
+ "span, visibility: inherit inside visibility: visible parent" ) ;
113
+ isFocusable ( "#nestedVisibilityInheritWithVisibleAncestor-input" ,
114
+ "input, visibility: inherit inside visibility: visible parent" ) ;
111
115
} ) ;
112
116
113
117
test ( "focusable - disabled elements" , function ( ) {
@@ -125,7 +129,7 @@ test( "focusable - disabled elements", function() {
125
129
} ) ;
126
130
127
131
test ( "focusable - hidden styles" , function ( ) {
128
- expect ( 10 ) ;
132
+ expect ( 12 ) ;
129
133
130
134
isNotFocusable ( "#displayNoneAncestor-input" , "input, display: none parent" ) ;
131
135
isNotFocusable ( "#displayNoneAncestor-span" , "span with tabindex, display: none parent" ) ;
@@ -136,6 +140,9 @@ test( "focusable - hidden styles", function() {
136
140
isFocusable ( "#nestedVisibilityOverrideAncestor-input" , "input, visibility: visible parent but visibility: hidden grandparent" ) ;
137
141
isFocusable ( "#nestedVisibilityOverrideAncestor-span" , "span with tabindex, visibility: visible parent but visibility: hidden grandparent " ) ;
138
142
143
+ isNotFocusable ( "#nestedVisibilityInheritWithHiddenAncestor" , "span, visibility: inherit inside visibility: hidden parent" ) ;
144
+ isNotFocusable ( "#nestedVisibilityInheritWithHiddenAncestor-input" , "input, visibility: inherit inside visibility: hidden parent" ) ;
145
+
139
146
isNotFocusable ( "#displayNone-input" , "input, display: none" ) ;
140
147
isNotFocusable ( "#visibilityHidden-input" , "input, visibility: hidden" ) ;
141
148
0 commit comments