Fail | dialog element with autofocus should get initial focus. | assert_equals: showModal: the target element did not receive initial focus. expected Element node <dialog autofocus="" id="autofocusdialog" data-descriptio... but got Element node <button tabindex="0" autofocus="">autofocusable button</b... at Test.<anonymous> (https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:39:3
at NodeList.forEach (<anonymous>) Asserts runFail | assert_equals(Element node <button tabindex="0" autofocus="">autofocusable button</b..., Element node <dialog autofocus="" id="autofocusdialog" data-descriptio..., "showModal: the target element did not receive initial focus.")
at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5) |
|
Fail | Only keyboard-focusable elements should get dialog initial focus. | assert_equals: showModal: the target element did not receive initial focus. expected Element node <button tabindex="0" class="target">keyboard focusable bu... but got Element node <button tabindex="-1">mouse focusable button</button> at Test.<anonymous> (https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:39:3
at NodeList.forEach (<anonymous>) Asserts runFail | assert_equals(Element node <button tabindex="-1">mouse focusable button</button>, Element node <button tabindex="0" class="target">keyboard focusable bu..., "showModal: the target element did not receive initial focus.")
at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5) |
|
Pass | Autofocus takes precedence over keyboard-focusable requirement. | Asserts runPass | assert_equals(Element node <button tabindex="-1" autofocus="" class="target">mouse f..., Element node <button tabindex="-1" autofocus="" class="target">mouse f..., "showModal: the target element did not receive initial focus.")
at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5) | Pass | assert_equals(Element node <button tabindex="-1" autofocus="" class="target">mouse f..., Element node <button tabindex="-1" autofocus="" class="target">mouse f..., "show: the target element did not receive initial focus.")
at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:55:5) |
|
Fail | Only keyboard-focusable elements should get dialog initial focus including in subtrees. | assert_equals: showModal: the target element did not receive initial focus. expected Element node <button tabindex="0" class="target">keyboard focusable bu... but got Element node <button tabindex="-1">mouse focusable button</button> at Test.<anonymous> (https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:39:3
at NodeList.forEach (<anonymous>) Asserts runFail | assert_equals(Element node <button tabindex="-1">mouse focusable button</button>, Element node <button tabindex="0" class="target">keyboard focusable bu..., "showModal: the target element did not receive initial focus.")
at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5) |
|
Fail | Only keyboard-focusable elements should get dialog initial focus including in nested buttons. | assert_equals: showModal: the target element did not receive initial focus. expected Element node <button tabindex="0" class="target">keyboard focusable bu... but got Element node <button tabindex="-1">
<span>mouse focusable button</... at Test.<anonymous> (https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:39:3
at NodeList.forEach (<anonymous>) Asserts runFail | assert_equals(Element node <button tabindex="-1"> <span>mouse focusable button</..., Element node <button tabindex="0" class="target">keyboard focusable bu..., "showModal: the target element did not receive initial focus.")
at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/child-sequential-focus.html:50:5) |
|