51.4shadow-dom/focus/
102 / 104 WPT subtests passing
- Failed
- 2
- Timed out
- 0
- Not run
- 0
- Test files
- 33
- Blocking files
- 0
Chrome 69 / 104 WPT subtests passing on the same files, 4 blocking
Tests
33 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
DocumentOrShadowRoot-activeElement.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- activeElement on document & shadow root when focused element is in the shadow tree
- activeElement on document & shadow root when focused element is in the document
- activeElement on document & shadow root when focused element is slotted
- activeElement on a neighboring host when focused element is in another shadow tree
- activeElement when focused element is in a nested shadow tree
- activeElement when focused element is in a parent shadow tree
ShadowRoot-delegatesFocus.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- default delegatesFocus value
- delegatesFocus set to false in init dict
- delegatesFocus set to true in init dict
blur-on-shadow-host-delegatesFocus.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Calling blur() on shadow host with delegatesFocus should remove the focus.
- Calling blur() on shadow host with delegatesFocus when the focus is on a slotted element should not remove the focus.
click-focus-delegatesFocus-click.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- call click() on host with delegatesFocus, all tabindex=0
- call click() on slotted element in delegatesFocus shadow tree, all tabindex=0
- click on the host with delegatesFocus with another host with delegatesFocus and a focusable child
- click on the host with delegatesFocus with another host with no delegatesFocus and a focusable child
- click on the host with no delegatesFocus with another host with delegatesFocus and a focusable child
- click on the host with no delegatesFocus with another host with no delegatesFocus and a focusable child
click-focus-delegatesFocus-tabindex-varies.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- click on host with delegatesFocus, #aboveSlot tabindex = 2, #slot and #slotted tabindex = 1
click-focus-delegatesFocus-tabindex-zero.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- click on host with delegatesFocus, all tabindex=0 except spacer
click-focus-slot-ancestor.html 1 / 3 passingChrome 3 / 32 failedWith failures
- ¶
FAILSelect on non-focusable slot inside focusable div will select text
assert_equals: expected Text node "Text to click and select" but got null
- ¶
FAILSelect on non-focusable non-editable slot in a contenteditable shadow DOM and inside focusable div will select text
assert_equals: focus is on contenteditable container only expected null but got Element node <div id="shadowDiv" tabindex="0"><slot></slot></div>
1 passing subtest
- Clicking on non-focusable slot inside focusable div will make the flat-tree focusable ancestor get focused
delegatesFocus-tabindex-change.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Setting tabindex on the shadow host of a focused element with delegatesFocus should not change focus.
focus-autofocus.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- The second input should be focused since it has autofocus
- Focus should not be delegated to the autofocus element because the inner host doesn't have delegates focus
- Focus should be delegated to the autofocus element when the inner host has delegates focus
- Focus should not be delegated to the slotted elements
- Focus should be delegated to the nested div which has autofocus based on the tree order
focus-click-on-shadow-host.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- :focus should be applied to the host and the child node when the focus is moved by mouse click
focus-method-delegatesFocus-nested-browsing-context.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- focus delegate step should not be run when the focus target is a shadow-including inclusive ancestor of the current focus.
focus-method-delegatesFocus.html 15 / 15 passingChrome 15 / 150 failedClean
15 passing subtests
- focus() on host with delegatesFocus, all tabindex=0
- focus() on host with delegatesFocus & tabindex =-1, all other tabindex=0
- focus() on host with delegatesFocus & no tabindex, all other tabindex=0
- focus() on host with delegatesFocus & tabindex = 0, all other tabindex=-1
- focus() on host with delegatesFocus, all without tabindex
- focus() on host with delegatesFocus, all tabindex=-1
- focus() on host with delegatesFocus & tabindex=0, #belowSlots with tabindex=0
- focus() on host with delegatesFocus & tabindex=0, #outside with tabindex=0
- focus() on host with delegatesFocus & tabindex=0, #aboveSlots and #belowSlots with tabindex=0
- focus() on host with delegatesFocus & tabindex=0, #aboveSlots with tabindex=0 and #belowSlots with tabindex=1
- focus() on host with delegatesFocus & tabindex=0, #slottedToFirstSlot, #slottedToSecondSlot, #belowSlots with tabindex=0
- focus() on host with delegatesFocus and already-focused non-first shadow descendant
- focus() on host with delegatesFocus with another host with no delegatesFocus and a focusable child
- focus() on host with delegatesFocus with another host with delegatesFocus and a focusable child
- focus() on host with delegatesFocus and slotted focusable children
focus-method-with-delegatesFocus.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- xshadow0 is not focusable without tabindex.
- xshadow1 becomes focusable with tabindex.
- on focus(), focusable xshadow2 with delegatesFocus=true delegates focus into its inner element.
- if an element within shadow is focused, focusing on shadow host should not slide focus to its inner element.
- xshadow2.focus() shouldn't move focus to #one when its inner element is already focused.
- focus() inside shadow DOM should not focus its shadow host, nor focusable siblings.
- If any element including shadow host is not focusable, focus doesn't change.
- If no element is focusable within a delegatesFocus shadow root, the host can't get focus regardless of host's tabIndex.
focus-preserved-on-slot-reorder.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Reordering a slot wrapper in the shadow tree preserves focus on the slotted element
focus-pseudo-matches-on-shadow-host.html 20 / 20 passingChrome 0 / 200 failedClean
20 passing subtests
- :focus must not match a shadow host with {mode:open, delegatesFocus:false} shadow root that does not contain the focused element
- :focus must match a shadow host with {mode:open, delegatesFocus:false} shadow root that contains the focused element
- :focus must not match a shadow host with {mode:open, delegatesFocus:false} shadow root contains the focused element assigned to a slot
- :focus must match all shadow hosts which are ancestors of a foccused element; {mode:open, delegatesFocus:false}
- :focus behavior on tree structure changes; {mode:open, delegatesFocus:false}
- :focus must not match a shadow host with {mode:open, delegatesFocus:true} shadow root that does not contain the focused element
- :focus must match a shadow host with {mode:open, delegatesFocus:true} shadow root that contains the focused element
- :focus must not match a shadow host with {mode:open, delegatesFocus:true} shadow root contains the focused element assigned to a slot
- :focus must match all shadow hosts which are ancestors of a foccused element; {mode:open, delegatesFocus:true}
- :focus behavior on tree structure changes; {mode:open, delegatesFocus:true}
- :focus must not match a shadow host with {mode:closed, delegatesFocus:false} shadow root that does not contain the focused element
- :focus must match a shadow host with {mode:closed, delegatesFocus:false} shadow root that contains the focused element
- :focus must not match a shadow host with {mode:closed, delegatesFocus:false} shadow root contains the focused element assigned to a slot
- :focus must match all shadow hosts which are ancestors of a foccused element; {mode:closed, delegatesFocus:false}
- :focus behavior on tree structure changes; {mode:closed, delegatesFocus:false}
- :focus must not match a shadow host with {mode:closed, delegatesFocus:true} shadow root that does not contain the focused element
- :focus must match a shadow host with {mode:closed, delegatesFocus:true} shadow root that contains the focused element
- :focus must not match a shadow host with {mode:closed, delegatesFocus:true} shadow root contains the focused element assigned to a slot
- :focus must match all shadow hosts which are ancestors of a foccused element; {mode:closed, delegatesFocus:true}
- :focus behavior on tree structure changes; {mode:closed, delegatesFocus:true}
focus-selector-delegatesFocus.html 12 / 12 passingChrome 0 / 120 failedClean
12 passing subtests
- :focus applies to host with delegatesFocus=true when the shadow root's descendant has focus
- :focus does not apply to host with delegatesFocus=true when slotted element has focus
- :focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=true is focused
- :focus should be removed from hosts with delegatesFocus=true when none of the elements in a nested shadow tree with delegatesFocus=true is focused
- :focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=false is focused
- :focus should be removed from hosts with delegatesFocus=true when none of the elements in a nested shadow tree with delegatesFocus=false is focused
- :focus applies to host with delegatesFocus=false when the shadow root's descendant has focus
- :focus does not apply to host with delegatesFocus=false when slotted element has focus
- :focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=true is focused
- :focus should be removed from hosts with delegatesFocus=false when none of the elements in a nested shadow tree with delegatesFocus=true is focused
- :focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=false is focused
- :focus should be removed from hosts with delegatesFocus=false when none of the elements in a nested shadow tree with delegatesFocus=false is focused
focus-shadowhost-display-none.html 2 / 2 passingChrome 0 / 20 failedClean
2 passing subtests
- when shadow host itself is focused, it should match display:none, lose focus then becomes display:block again.
- when shadow host with delegatesFocus=true has focused element inside the shadow, it should also match display:none, then lose focus and become display:block again.
focus-slot-box-generated-tabindex-0.html 1 / 1 passingChrome 0 / 10 failedClean
1 passing subtest
- slot with tabindex=0 that generates a box should be focusable
focus-tab-on-shadow-host.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- :focus should be applied to the host and :focus-visible should be applied to the child node when the focus is moved by <tab>
focus-tabindex-order-shadow-negative-delegatesFocus.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=-1 is and delegatesFocus = true
focus-tabindex-order-shadow-negative.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all elements in shadow tree has negative tabindex
focus-tabindex-order-shadow-slot-one.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0, except for one slot that has tabindex=1
focus-tabindex-order-shadow-varying-delegatesFocus.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when tabindex varies and delegatesFocus = true
focus-tabindex-order-shadow-varying-tabindex-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order with different tabindex on host
focus-tabindex-order-shadow-varying-tabindex-3.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order with different tabindex on host
focus-tabindex-order-shadow-varying-tabindex.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order with various tabindex values
focus-tabindex-order-shadow-zero-delegatesFocus.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0 is and delegatesFocus = true
focus-tabindex-order-shadow-zero-host-negative.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0 except for host, which has tabindex=-1
focus-tabindex-order-shadow-zero-host-not-set-scrollable.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0 except scrollable host (tabindex not set)
focus-tabindex-order-shadow-zero-host-not-set.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0 except host (tabindex not set)
focus-tabindex-order-shadow-zero-host-one.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0 except for host, which has tabindex=1
focus-tabindex-order-shadow-zero-host-scrollable.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0 and host is scrollable
focus-tabindex-order-shadow-zero.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Order when all tabindex=0 is and delegatesFocus = false