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 here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
DocumentOrShadowRoot-activeElement.html6 / 6 passingChrome 6 / 60 failedClean
Standing
Clean runner status OK
Chrome
Clean 6 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. activeElement on document & shadow root when focused element is in the shadow tree
  2. activeElement on document & shadow root when focused element is in the document
  3. activeElement on document & shadow root when focused element is slotted
  4. activeElement on a neighboring host when focused element is in another shadow tree
  5. activeElement when focused element is in a nested shadow tree
  6. activeElement when focused element is in a parent shadow tree
ShadowRoot-delegatesFocus.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. default delegatesFocus value
  2. delegatesFocus set to false in init dict
  3. delegatesFocus set to true in init dict
blur-on-shadow-host-delegatesFocus.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Calling blur() on shadow host with delegatesFocus should remove the focus.
  2. Calling blur() on shadow host with delegatesFocus when the focus is on a slotted element should not remove the focus.
click-focus-delegatesFocus-click.html6 / 6 passingChrome 6 / 60 failedClean
Standing
Clean runner status OK
Chrome
Clean 6 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. call click() on host with delegatesFocus, all tabindex=0
  2. call click() on slotted element in delegatesFocus shadow tree, all tabindex=0
  3. click on the host with delegatesFocus with another host with delegatesFocus and a focusable child
  4. click on the host with delegatesFocus with another host with no delegatesFocus and a focusable child
  5. click on the host with no delegatesFocus with another host with delegatesFocus and a focusable child
  6. click on the host with no delegatesFocus with another host with no delegatesFocus and a focusable child
click-focus-delegatesFocus-tabindex-varies.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. click on host with delegatesFocus, #aboveSlot tabindex = 2, #slot and #slotted tabindex = 1
click-focus-delegatesFocus-tabindex-zero.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. click on host with delegatesFocus, all tabindex=0 except spacer
click-focus-slot-ancestor.html1 / 3 passingChrome 3 / 32 failedWith failures
Standing
With failures runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
  1. FAILSelect on non-focusable slot inside focusable div will select text
    assert_equals: expected Text node "Text to click and select" but got null
  2. 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
  1. Clicking on non-focusable slot inside focusable div will make the flat-tree focusable ancestor get focused
delegatesFocus-tabindex-change.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Setting tabindex on the shadow host of a focused element with delegatesFocus should not change focus.
focus-autofocus.html5 / 5 passingChrome 5 / 50 failedClean
Standing
Clean runner status OK
Chrome
Clean 5 / 5 WPT subtests passing runner status OK
5 passing subtests
  1. The second input should be focused since it has autofocus
  2. Focus should not be delegated to the autofocus element because the inner host doesn't have delegates focus
  3. Focus should be delegated to the autofocus element when the inner host has delegates focus
  4. Focus should not be delegated to the slotted elements
  5. Focus should be delegated to the nested div which has autofocus based on the tree order
focus-click-on-shadow-host.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. :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.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. focus delegate step should not be run when the focus target is a shadow-including inclusive ancestor of the current focus.
focus-method-delegatesFocus.html15 / 15 passingChrome 15 / 150 failedClean
Standing
Clean runner status OK
Chrome
Clean 15 / 15 WPT subtests passing runner status OK
15 passing subtests
  1. focus() on host with delegatesFocus, all tabindex=0
  2. focus() on host with delegatesFocus & tabindex =-1, all other tabindex=0
  3. focus() on host with delegatesFocus & no tabindex, all other tabindex=0
  4. focus() on host with delegatesFocus & tabindex = 0, all other tabindex=-1
  5. focus() on host with delegatesFocus, all without tabindex
  6. focus() on host with delegatesFocus, all tabindex=-1
  7. focus() on host with delegatesFocus & tabindex=0, #belowSlots with tabindex=0
  8. focus() on host with delegatesFocus & tabindex=0, #outside with tabindex=0
  9. focus() on host with delegatesFocus & tabindex=0, #aboveSlots and #belowSlots with tabindex=0
  10. focus() on host with delegatesFocus & tabindex=0, #aboveSlots with tabindex=0 and #belowSlots with tabindex=1
  11. focus() on host with delegatesFocus & tabindex=0, #slottedToFirstSlot, #slottedToSecondSlot, #belowSlots with tabindex=0
  12. focus() on host with delegatesFocus and already-focused non-first shadow descendant
  13. focus() on host with delegatesFocus with another host with no delegatesFocus and a focusable child
  14. focus() on host with delegatesFocus with another host with delegatesFocus and a focusable child
  15. focus() on host with delegatesFocus and slotted focusable children
focus-method-with-delegatesFocus.html8 / 8 passingChrome 8 / 80 failedClean
Standing
Clean runner status OK
Chrome
Clean 8 / 8 WPT subtests passing runner status OK
8 passing subtests
  1. xshadow0 is not focusable without tabindex.
  2. xshadow1 becomes focusable with tabindex.
  3. on focus(), focusable xshadow2 with delegatesFocus=true delegates focus into its inner element.
  4. if an element within shadow is focused, focusing on shadow host should not slide focus to its inner element.
  5. xshadow2.focus() shouldn't move focus to #one when its inner element is already focused.
  6. focus() inside shadow DOM should not focus its shadow host, nor focusable siblings.
  7. If any element including shadow host is not focusable, focus doesn't change.
  8. 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.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Reordering a slot wrapper in the shadow tree preserves focus on the slotted element
focus-pseudo-matches-on-shadow-host.html20 / 20 passingChrome 0 / 200 failedClean
Standing
Clean runner status OK
Chrome
TIMEOUT 0 / 20 WPT subtests passing runner status TIMEOUT
20 passing subtests
  1. :focus must not match a shadow host with {mode:open, delegatesFocus:false} shadow root that does not contain the focused element
  2. :focus must match a shadow host with {mode:open, delegatesFocus:false} shadow root that contains the focused element
  3. :focus must not match a shadow host with {mode:open, delegatesFocus:false} shadow root contains the focused element assigned to a slot
  4. :focus must match all shadow hosts which are ancestors of a foccused element; {mode:open, delegatesFocus:false}
  5. :focus behavior on tree structure changes; {mode:open, delegatesFocus:false}
  6. :focus must not match a shadow host with {mode:open, delegatesFocus:true} shadow root that does not contain the focused element
  7. :focus must match a shadow host with {mode:open, delegatesFocus:true} shadow root that contains the focused element
  8. :focus must not match a shadow host with {mode:open, delegatesFocus:true} shadow root contains the focused element assigned to a slot
  9. :focus must match all shadow hosts which are ancestors of a foccused element; {mode:open, delegatesFocus:true}
  10. :focus behavior on tree structure changes; {mode:open, delegatesFocus:true}
  11. :focus must not match a shadow host with {mode:closed, delegatesFocus:false} shadow root that does not contain the focused element
  12. :focus must match a shadow host with {mode:closed, delegatesFocus:false} shadow root that contains the focused element
  13. :focus must not match a shadow host with {mode:closed, delegatesFocus:false} shadow root contains the focused element assigned to a slot
  14. :focus must match all shadow hosts which are ancestors of a foccused element; {mode:closed, delegatesFocus:false}
  15. :focus behavior on tree structure changes; {mode:closed, delegatesFocus:false}
  16. :focus must not match a shadow host with {mode:closed, delegatesFocus:true} shadow root that does not contain the focused element
  17. :focus must match a shadow host with {mode:closed, delegatesFocus:true} shadow root that contains the focused element
  18. :focus must not match a shadow host with {mode:closed, delegatesFocus:true} shadow root contains the focused element assigned to a slot
  19. :focus must match all shadow hosts which are ancestors of a foccused element; {mode:closed, delegatesFocus:true}
  20. :focus behavior on tree structure changes; {mode:closed, delegatesFocus:true}
focus-selector-delegatesFocus.html12 / 12 passingChrome 0 / 120 failedClean
Standing
Clean runner status OK
Chrome
NONE-PASSED 0 / 12 WPT subtests passing runner status OK
12 passing subtests
  1. :focus applies to host with delegatesFocus=true when the shadow root's descendant has focus
  2. :focus does not apply to host with delegatesFocus=true when slotted element has focus
  3. :focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=true is focused
  4. :focus should be removed from hosts with delegatesFocus=true when none of the elements in a nested shadow tree with delegatesFocus=true is focused
  5. :focus applies to host with delegatesFocus=true when an element in a nested shadow tree with delegatesFocus=false is focused
  6. :focus should be removed from hosts with delegatesFocus=true when none of the elements in a nested shadow tree with delegatesFocus=false is focused
  7. :focus applies to host with delegatesFocus=false when the shadow root's descendant has focus
  8. :focus does not apply to host with delegatesFocus=false when slotted element has focus
  9. :focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=true is focused
  10. :focus should be removed from hosts with delegatesFocus=false when none of the elements in a nested shadow tree with delegatesFocus=true is focused
  11. :focus applies to host with delegatesFocus=false when an element in a nested shadow tree with delegatesFocus=false is focused
  12. :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.html2 / 2 passingChrome 0 / 20 failedClean
Standing
Clean runner status OK
Chrome
NONE-PASSED 0 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. when shadow host itself is focused, it should match display:none, lose focus then becomes display:block again.
  2. 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.html1 / 1 passingChrome 0 / 10 failedClean
Standing
Clean runner status OK
Chrome
NONE-PASSED 0 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. slot with tabindex=0 that generates a box should be focusable
focus-tab-on-shadow-host.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. :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.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=-1 is and delegatesFocus = true
focus-tabindex-order-shadow-negative.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all elements in shadow tree has negative tabindex
focus-tabindex-order-shadow-slot-one.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0, except for one slot that has tabindex=1
focus-tabindex-order-shadow-varying-delegatesFocus.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when tabindex varies and delegatesFocus = true
focus-tabindex-order-shadow-varying-tabindex-2.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order with different tabindex on host
focus-tabindex-order-shadow-varying-tabindex-3.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order with different tabindex on host
focus-tabindex-order-shadow-varying-tabindex.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order with various tabindex values
focus-tabindex-order-shadow-zero-delegatesFocus.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0 is and delegatesFocus = true
focus-tabindex-order-shadow-zero-host-negative.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0 except for host, which has tabindex=-1
focus-tabindex-order-shadow-zero-host-not-set-scrollable.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0 except scrollable host (tabindex not set)
focus-tabindex-order-shadow-zero-host-not-set.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0 except host (tabindex not set)
focus-tabindex-order-shadow-zero-host-one.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0 except for host, which has tabindex=1
focus-tabindex-order-shadow-zero-host-scrollable.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0 and host is scrollable
focus-tabindex-order-shadow-zero.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Order when all tabindex=0 is and delegatesFocus = false

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.