html/semantics/interactive-elements/the-dialog-element/
326 / 373 WPT subtests passing
- Failed
- 46
- Timed out
- 1
- Not run
- 0
- Test files
- 82
- Blocking files
- 0
Chrome 342 / 373 WPT subtests passing on the same files, 1 blocking, 18 without a result
Tests
82 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
child-sequential-focus.html 5 / 5 passingChrome 1 / 50 failedClean
5 passing subtests
- dialog element with autofocus should get initial focus.
- Only keyboard-focusable elements should get dialog initial focus.
- Autofocus takes precedence over keyboard-focusable requirement.
- Only keyboard-focusable elements should get dialog initial focus including in subtrees.
- Only keyboard-focusable elements should get dialog initial focus including in nested buttons.
default-color.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- <dialog> color and background match default
- <dialog> colors react to dark mode
dialog-active-document.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- showModal should throw when the document isn't active
dialog-audio-video-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-audio-video-crash.html PASS none reported
No subtests were reported.
dialog-autofocus-just-once.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- An autofocus element in a dialog element should not try to get focus twice.
dialog-autofocus-multiple-times.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- autofocus is run every time a dialog is opened
dialog-autofocus.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- autofocus when a modal dialog is opened
dialog-cancel-events.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test cancel event is fired when the dialog is closed by user close requests
dialog-cancel-preventDefault.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test cancel event with preventDefault on cancel event for dialog element
dialog-cancel-with-input.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test dialog modal is closed by escape key with input focused
dialog-cancel-with-select.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test dialog modal is closed by escape key with select focused
dialog-canceling.html 1 / 1 passingChrome 0 / 10 failedClean
1 passing subtest
- Modal dialogs should close when the escape key is pressed.
dialog-close-event-async.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- close() fires a close event
dialog-close-event.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that dialog receives a close event upon closing.
dialog-close.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- close() fires a close event
- close() on a <dialog> that doesn't have an open attribute aborts the steps
- close() removes the open attribute and set the returnValue to the first argument
- close() without argument removes the open attribute and there's no returnValue
- close() should set the returnValue IDL attribute but not the JS property
dialog-closedby-corner-cases.html 30 / 30 passingChrome 30 / 300 failedClean
30 passing subtests
- Pressing escape, when focusin removes and reinserts, modeless
- Clicking outside, when focusin removes and reinserts, modeless
- Pressing escape, when focusin closes dialog, modeless
- Clicking outside, when focusin closes dialog, modeless
- Pressing escape, when focusin calls showModal, modeless
- Clicking outside, when focusin calls showModal, modeless
- Pressing escape, when beforetoggle closes dialog, modeless
- Clicking outside, when beforetoggle closes dialog, modeless
- Pressing escape, when beforetoggle calls showModal, modeless
- Clicking outside, when beforetoggle calls showModal, modeless
- Pressing escape, when focusin removes and reinserts, modal
- Clicking outside, when focusin removes and reinserts, modal
- Pressing escape, when focusin closes dialog, modal
- Clicking outside, when focusin closes dialog, modal
- Pressing escape, when focusin calls showModal, modal
- Clicking outside, when focusin calls showModal, modal
- Pressing escape, when beforetoggle closes dialog, modal
- Clicking outside, when beforetoggle closes dialog, modal
- Pressing escape, when beforetoggle calls showModal, modal
- Clicking outside, when beforetoggle calls showModal, modal
- Pressing escape, when focusin removes and reinserts, open
- Clicking outside, when focusin removes and reinserts, open
- Pressing escape, when focusin closes dialog, open
- Clicking outside, when focusin closes dialog, open
- Pressing escape, when focusin calls showModal, open
- Clicking outside, when focusin calls showModal, open
- Pressing escape, when beforetoggle closes dialog, open
- Clicking outside, when beforetoggle closes dialog, open
- Pressing escape, when beforetoggle calls showModal, open
- Clicking outside, when beforetoggle calls showModal, open
dialog-closedby-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-closedby-crash.html PASS none reported
No subtests were reported.
dialog-closedby-show-stacked.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- With an inner closedby=none, the outer & inner dialogs stays open when Esc is pressed
- With an inner closedby=none, the outer & inner dialogs stays open when clicked outside
- With an inner closedby=any, the outer dialog stays open but the inner dialogs should close, when Esc is pressed
- With an inner closedby=any, the outer dialog stays open but the inner dialogs should close, when clicked outside
dialog-closedby-start-open.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Dialogs that start open and have closedby should still function
- Opening and closing a dialog during the dialog focus fixup should still leave closedby functional
dialog-closedby.html 27 / 27 passingChrome 27 / 270 failedClean
27 passing subtests
- closedby=any, modeless
- closedby=any, modal
- closedby=any, open
- closedby=closerequest, modeless
- closedby=closerequest, modal
- closedby=closerequest, open
- closedby=none, modeless
- closedby=none, modal
- closedby=none, open
- closedby=AnY, modeless
- closedby=AnY, modal
- closedby=AnY, open
- closedby=ClOsErEqUeSt, modeless
- closedby=ClOsErEqUeSt, modal
- closedby=ClOsErEqUeSt, open
- closedby=NoNe, modeless
- closedby=NoNe, modal
- closedby=NoNe, open
- closedby=invalid, modeless
- closedby=invalid, modal
- closedby=invalid, open
- closedby=, modeless
- closedby=, modal
- closedby=, open
- closedby=null, modeless
- closedby=null, modal
- closedby=null, open
dialog-closewatcher-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-closewatcher-crash.html PASS none reported
No subtests were reported.
dialog-enabled.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- The DIALOG element should be recognized
dialog-focus-previous-outside.html 5 / 6 passingChrome 6 / 61 failedWith failures
- ¶
FAILFocus restore should occur when the focused element is slotted into a dialog.
assert_equals: expected Element node <button id="b2">button 2</button> but got Element node <button id="host2button">button</button>
5 passing subtests
- Focus should not be restored if the currently focused element is not inside the dialog.
- Focus restore should not occur when the focused element is in a shadowroot outside of the dialog.
- Focus restore should occur when the focused element is in a shadowroot inside the dialog.
- Focus restore should always occur for modal dialogs.
- Focus restore should work when the dialog itself is focused.
dialog-focus-shadow-double-nested.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- show()
- showModal()
dialog-focus-shadow.html 50 / 50 passingChrome 26 / 500 failedClean
50 passing subtests
- show: No autofocus, no delegatesFocus, no siblings
- showModal: No autofocus, no delegatesFocus, no siblings
- show: No autofocus, no delegatesFocus, sibling before
- showModal: No autofocus, no delegatesFocus, sibling before
- show: No autofocus, no delegatesFocus, sibling after
- showModal: No autofocus, no delegatesFocus, sibling after
- show: No autofocus, yes delegatesFocus, no siblings
- showModal: No autofocus, yes delegatesFocus, no siblings
- show: No autofocus, yes delegatesFocus, sibling before
- showModal: No autofocus, yes delegatesFocus, sibling before
- show: No autofocus, yes delegatesFocus, sibling after
- showModal: No autofocus, yes delegatesFocus, sibling after
- show: Autofocus before, no delegatesFocus
- showModal: Autofocus before, no delegatesFocus
- show: Autofocus before, yes delegatesFocus
- showModal: Autofocus before, yes delegatesFocus
- show: Autofocus after, no delegatesFocus
- showModal: Autofocus after, no delegatesFocus
- show: Autofocus after, yes delegatesFocus
- showModal: Autofocus after, yes delegatesFocus
- show: Autofocus on shadow host, yes delegatesFocus, no siblings
- showModal: Autofocus on shadow host, yes delegatesFocus, no siblings
- show: Autofocus on shadow host, yes delegatesFocus, sibling before
- showModal: Autofocus on shadow host, yes delegatesFocus, sibling before
- show: Autofocus on shadow host, yes delegatesFocus, sibling after
- showModal: Autofocus on shadow host, yes delegatesFocus, sibling after
- show: Autofocus on shadow host, no delegatesFocus, no siblings
- showModal: Autofocus on shadow host, no delegatesFocus, no siblings
- show: Autofocus on shadow host, no delegatesFocus, sibling before
- showModal: Autofocus on shadow host, no delegatesFocus, sibling before
- show: Autofocus on shadow host, no delegatesFocus, sibling after
- showModal: Autofocus on shadow host, no delegatesFocus, sibling after
- show: Autofocus inside shadow tree, yes delegatesFocus, no siblings
- showModal: Autofocus inside shadow tree, yes delegatesFocus, no siblings
- show: Autofocus inside shadow tree, yes delegatesFocus, sibling before
- showModal: Autofocus inside shadow tree, yes delegatesFocus, sibling before
- show: Autofocus inside shadow tree, yes delegatesFocus, sibling after
- showModal: Autofocus inside shadow tree, yes delegatesFocus, sibling after
- show: Autofocus inside shadow tree, no delegatesFocus, no siblings
- showModal: Autofocus inside shadow tree, no delegatesFocus, no siblings
- show: Autofocus inside shadow tree, no delegatesFocus, sibling before
- showModal: Autofocus inside shadow tree, no delegatesFocus, sibling before
- show: Autofocus inside shadow tree, no delegatesFocus, sibling after
- showModal: Autofocus inside shadow tree, no delegatesFocus, sibling after
- show: Two shadow trees, both delegatesFocus, first tree doesn't have autofocus element, second does
- showModal: Two shadow trees, both delegatesFocus, first tree doesn't have autofocus element, second does
- show: No autofocus, no delegatesFocus, slotted target
- showModal: No autofocus, no delegatesFocus, slotted target
- show: Shadowroot on child, no autofocus, no delegatesFocus
- showModal: Shadowroot on child, no autofocus, no delegatesFocus
dialog-focusability.html 0 / 1 passingChrome 1 / 11 failedExempt
Exempt from the 0.1 gate: Crane follows the browser majority
Crane's sequential focus reaches the open dialog element itself at step 2 before its first button, as Firefox and Safari do (the same focus-order mismatch); only Chrome skips the dialog
- Crane matches
- Firefox, Safari
- Chrome
- wpt.fyi run 4786307730243584: 1/1 (Chrome 157, 2358bd4835)
- Firefox
- wpt.fyi run 4877168468033536: 0/1 (Firefox 160, 2358bd4835)
- Safari
- wpt.fyi run 6479119966273536: 0/1 (Safari 27.2, 2358bd4835)
- Revisit
- when Chrome, Firefox or Safari changes its result on a newer aligned wpt.fyi run, or Crane's result moves
- ¶
FAILThe dialog element itself should not be keyboard focusable.
assert_equals: Focus order mismatch at step 2/11 expected Element node <button id="within1">button</button> but got Element node <dialog id="dialog1" open=""> <button id="within1">butt...
dialog-focusing-steps-disconnected.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- dialog.show(): focusing steps should not change focus on disconnected <dialog>
- dialog.showModal() should throw on disconnected <dialog>
dialog-focusing-steps-inert.html 1 / 2 passingChrome 1 / 21 failedWith failures
- ¶
FAILdialog.showModal(): focusing steps should apply focus fixup rule when dialog is inert
assert_equals: dialog.showModal(): focusing steps should apply focus fixup rule when dialog is inert expected Element node <body> <input id="outer-input"> <dialog inert="" open="">... but got Element node <input id="outer-input"></input>
1 passing subtest
- dialog.show(): focusing steps should not change focus when dialog is inert
dialog-focusing-steps-prevent-autofocus.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- After showing a dialog, non-dialog autofocus processing won't work.
dialog-form-submission-unusual.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- A form's action and rel=noopener are ignored during submission
- A form's action and rel=noopener are ignored during submission, part 2
dialog-form-submission.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- click the form submission button should close the dialog
- form submission should return correct value
- returnValue doesn't update when there's no value attribute.
- returnValue does update when there's an empty value attribute.
- input image button should return the coordinates
- formmethod attribute should use dialog form submission
- closing the dialog while submitting should stop the submission
- calling form.submit() in click handler of submit button should start the submission synchronously
dialog-insert-disconnected-node-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-insert-disconnected-node-crash.html PASS none reported
No subtests were reported.
dialog-keydown-preventDefault.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test cancel event with preventDefault on keydown event for dialog element
dialog-light-dismiss-drag.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Dialog should not light dismiss when clicking inside the dialog and dragging outside of it.
dialog-no-throw-requested-state.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- dialog-no-throw-requested-state
dialog-not-in-tree-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-not-in-tree-crash.html PASS none reported
No subtests were reported.
dialog-open-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Tests that dialog is visible after show() is called and not visible after close() is called.
dialog-open-add-closedby-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-open-add-closedby-crash.html PASS none reported
No subtests were reported.
dialog-open-movebefore-setup.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- reparenting a dialog should not cause it to move in the open dialogs list
dialog-open.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- On getting, the IDL open attribute must return true if the content open attribute is set, and false if it is absent.
- On setting, the content open attribute must be removed if the IDL open attribute is set to false, and must be present if the IDL open attribute is set to true.
- On setting it to false, the close event should not be fired
dialog-overlay.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- dialog computed overlay initially 'none'
- Opening and closing a modal dialog changes computed overlay to 'auto' and back to 'none'
dialog-popover-closedby-complex.html 4 / 40 passingChrome 40 / 4036 failedWith failures
- ¶
FAILclicking popoverB with modeless dialogA and modeless dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modeless dialogA and modeless dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modeless dialogA and modeless dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modeless dialogA and modeless dialogB, normal DOM nesting
assert_equals: dialogA should be open expected true but got false
- ¶
FAILclicking outside all with modeless dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverB with modeless dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modeless dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modeless dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modeless dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverB with modal dialogA and modeless dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modal dialogA and modeless dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modal dialogA and modeless dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modal dialogA and modeless dialogB, normal DOM nesting
assert_equals: dialogA should be open expected true but got false
- ¶
FAILclicking outside all with modal dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverB with modal dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modal dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modal dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modal dialogA and modal dialogB, normal DOM nesting
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverB with modeless dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modeless dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modeless dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modeless dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: dialogA should be open expected true but got false
- ¶
FAILclicking outside all with modeless dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverB with modeless dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modeless dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modeless dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modeless dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverB with modal dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modal dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modal dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modal dialogA and modeless dialogB, same structure, but with shadow DOM slots
assert_equals: dialogA should be open expected true but got false
- ¶
FAILclicking outside all with modal dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverB with modal dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogB with modal dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking popoverA with modal dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
- ¶
FAILclicking dialogA with modal dialogA and modal dialogB, same structure, but with shadow DOM slots
assert_equals: popoverA should be open expected true but got false
4 passing subtests
- clicking outside all with modeless dialogA and modeless dialogB, normal DOM nesting
- clicking outside all with modal dialogA and modeless dialogB, normal DOM nesting
- clicking outside all with modeless dialogA and modeless dialogB, same structure, but with shadow DOM slots
- clicking outside all with modal dialogA and modeless dialogB, same structure, but with shadow DOM slots
dialog-popover-closedby-simple.html 0 / 6 passingChrome 6 / 66 failedExempt
Exempt from the 0.1 gate until a renderer answers geometry
every click is geometry: popover-utils clickOn() clicks the centre of element.getBoundingClientRect(), which with no renderer is a 0x0 rect at (0,0), so "clicking on" the popover or the dialog lands outside both and light-dismisses what the test means to click inside; all six subtests fail at their first click assertion. Their Escape steps are not geometry and pass on their own: tests/wpt/crane/blk2-dialog-popover-closedby-escape.html runs the same six setups and Escape sequences (with test_driver.bless() for the user activation the upstream clicks give) - 6/6 on blk2-l-bins/r4
- Failing assertion
- assert_true: clicking on popover should always leave everything open expected true got false (3 subtests); assert_true: clicking on dialog should always leave everything open / popover should stay open expected true got false (3 subtests)
- ¶
FAILDialog closedby=any parent, popover child
assert_true: clicking on popover should always leave everything open expected true got false
- ¶
FAILDialog closedby=closerequest parent, popover child
assert_true: clicking on popover should always leave everything open expected true got false
- ¶
FAILDialog closedby=none parent, popover child
assert_true: clicking on popover should always leave everything open expected true got false
- ¶
FAILPopover parent, dialog closedby=any child
assert_true: clicking on dialog should always leave everything open expected true got false
- ¶
FAILPopover parent, dialog closedby=closerequest child
assert_true: popover should stay open expected true got false
- ¶
FAILPopover parent, dialog closedby=none child
assert_true: popover should stay open expected true got false
dialog-remove-open-attr-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-remove-open-attr-crash.html PASS none reported
No subtests were reported.
dialog-requestclose-2-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose-2-crash.html PASS none reported
No subtests were reported.
dialog-requestclose-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- requestClose() should not close the dialog when disconnected
dialog-requestclose-3-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose-3-crash.html PASS none reported
No subtests were reported.
dialog-requestclose-3.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- requestClose() should not close the dialog when is in inactive document
dialog-requestclose-4-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose-4-crash.html PASS none reported
No subtests were reported.
dialog-requestclose-5-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose-5-crash.html PASS none reported
No subtests were reported.
dialog-requestclose-6-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose-6-crash.html PASS none reported
No subtests were reported.
dialog-requestclose-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose-crash.html PASS none reported
No subtests were reported.
dialog-requestclose-recurse.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Calling requestClose inside of cancel event handler doesn't trigger another cancel event
dialog-requestclose.html 75 / 75 passingChrome 75 / 750 failedClean
75 passing subtests
- requestClose basic behavior for modeless dialog with closedby=null
- requestClose fires both cancel and close for modeless dialog with closedby=null
- closedby has no effect on dialog.requestClose() for modeless dialog with closedby=null
- requestClose can be cancelled for modeless dialog with closedby=null
- requestClose avoids abuse prevention logic for modeless dialog with closedby=null
- requestClose(returnValue) passes along the return value for modeless dialog with closedby=null
- requestClose(returnValue) doesn't change returnvalue when cancelled for modeless dialog with closedby=null
- requestClose basic behavior for modeless dialog with closedby=any
- requestClose fires both cancel and close for modeless dialog with closedby=any
- closedby has no effect on dialog.requestClose() for modeless dialog with closedby=any
- requestClose can be cancelled for modeless dialog with closedby=any
- requestClose avoids abuse prevention logic for modeless dialog with closedby=any
- requestClose(returnValue) passes along the return value for modeless dialog with closedby=any
- requestClose(returnValue) doesn't change returnvalue when cancelled for modeless dialog with closedby=any
- requestClose basic behavior for modeless dialog with closedby=closedrequest
- requestClose fires both cancel and close for modeless dialog with closedby=closedrequest
- closedby has no effect on dialog.requestClose() for modeless dialog with closedby=closedrequest
- requestClose can be cancelled for modeless dialog with closedby=closedrequest
- requestClose avoids abuse prevention logic for modeless dialog with closedby=closedrequest
- requestClose(returnValue) passes along the return value for modeless dialog with closedby=closedrequest
- requestClose(returnValue) doesn't change returnvalue when cancelled for modeless dialog with closedby=closedrequest
- requestClose basic behavior for modeless dialog with closedby=none
- requestClose fires both cancel and close for modeless dialog with closedby=none
- closedby has no effect on dialog.requestClose() for modeless dialog with closedby=none
- requestClose basic behavior for modal dialog with closedby=null
- requestClose fires both cancel and close for modal dialog with closedby=null
- closedby has no effect on dialog.requestClose() for modal dialog with closedby=null
- requestClose can be cancelled for modal dialog with closedby=null
- requestClose avoids abuse prevention logic for modal dialog with closedby=null
- requestClose(returnValue) passes along the return value for modal dialog with closedby=null
- requestClose(returnValue) doesn't change returnvalue when cancelled for modal dialog with closedby=null
- requestClose basic behavior for modal dialog with closedby=any
- requestClose fires both cancel and close for modal dialog with closedby=any
- closedby has no effect on dialog.requestClose() for modal dialog with closedby=any
- requestClose can be cancelled for modal dialog with closedby=any
- requestClose avoids abuse prevention logic for modal dialog with closedby=any
- requestClose(returnValue) passes along the return value for modal dialog with closedby=any
- requestClose(returnValue) doesn't change returnvalue when cancelled for modal dialog with closedby=any
- requestClose basic behavior for modal dialog with closedby=closedrequest
- requestClose fires both cancel and close for modal dialog with closedby=closedrequest
- closedby has no effect on dialog.requestClose() for modal dialog with closedby=closedrequest
- requestClose can be cancelled for modal dialog with closedby=closedrequest
- requestClose avoids abuse prevention logic for modal dialog with closedby=closedrequest
- requestClose(returnValue) passes along the return value for modal dialog with closedby=closedrequest
- requestClose(returnValue) doesn't change returnvalue when cancelled for modal dialog with closedby=closedrequest
- requestClose basic behavior for modal dialog with closedby=none
- requestClose fires both cancel and close for modal dialog with closedby=none
- closedby has no effect on dialog.requestClose() for modal dialog with closedby=none
- requestClose basic behavior for open dialog with closedby=null
- requestClose fires both cancel and close for open dialog with closedby=null
- closedby has no effect on dialog.requestClose() for open dialog with closedby=null
- requestClose can be cancelled for open dialog with closedby=null
- requestClose avoids abuse prevention logic for open dialog with closedby=null
- requestClose(returnValue) passes along the return value for open dialog with closedby=null
- requestClose(returnValue) doesn't change returnvalue when cancelled for open dialog with closedby=null
- requestClose basic behavior for open dialog with closedby=any
- requestClose fires both cancel and close for open dialog with closedby=any
- closedby has no effect on dialog.requestClose() for open dialog with closedby=any
- requestClose can be cancelled for open dialog with closedby=any
- requestClose avoids abuse prevention logic for open dialog with closedby=any
- requestClose(returnValue) passes along the return value for open dialog with closedby=any
- requestClose(returnValue) doesn't change returnvalue when cancelled for open dialog with closedby=any
- requestClose basic behavior for open dialog with closedby=closedrequest
- requestClose fires both cancel and close for open dialog with closedby=closedrequest
- closedby has no effect on dialog.requestClose() for open dialog with closedby=closedrequest
- requestClose can be cancelled for open dialog with closedby=closedrequest
- requestClose avoids abuse prevention logic for open dialog with closedby=closedrequest
- requestClose(returnValue) passes along the return value for open dialog with closedby=closedrequest
- requestClose(returnValue) doesn't change returnvalue when cancelled for open dialog with closedby=closedrequest
- requestClose basic behavior for open dialog with closedby=none
- requestClose fires both cancel and close for open dialog with closedby=none
- closedby has no effect on dialog.requestClose() for open dialog with closedby=none
- requestClose basic behavior when dialog is open via attribute
- requestClose fires cancel and close when dialog is open via attribute
- requestClose(returnValue) passes along the return value when dialog is open via attribute
dialog-return-value.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Tests dialog.returnValue is settable and returns the last value set.
dialog-set-open-twice-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-set-open-twice-crash.html PASS none reported
No subtests were reported.
dialog-setup-cleanup-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-setup-cleanup-crash.html PASS none reported
No subtests were reported.
dialog-showModal-inert-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/dialog-showModal-inert-crash.html PASS none reported
No subtests were reported.
dialog-showModal-remove.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- dialog element: removing from document after showModal()
dialog-showModal.html 9 / 10 passingChrome 9 / 101 failedWith failures
- ¶
FAILwhen opening multiple dialogs, the most recently opened is rendered on top
assert_equals: expected Element node <dialog id="d11" open=""></dialog> but got null
9 passing subtests
- dialog element: showModal()
- showModal() on a <dialog> that already has an open attribute throws an InvalidStateError exception
- showModal() on a <dialog> after initial showModal() and removing the open attribute
- showModal() on a <dialog> not in a Document throws an InvalidStateError exception
- when opening multiple dialogs, only the newest one is non-inert
- opening dialog without focusable children
- opening dialog with multiple focusable children
- opening dialog with multiple focusable children, one having the autofocus attribute
- When the document is not attached to any pages, showModal() should throw.
dialog-synthetic-keydown.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- close via synthesized Esc key must not work
dialog-toggle-source.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- ToggleEvent.source on <dialog> elements: dialog.showModal().
- ToggleEvent.source on <dialog> elements: command button.
- ToggleEvent.source on <dialog> elements: open with showModal, close with button.
- ToggleEvent.soruce on <dialog> elements: open with button, close with dialog.close().
- ToggleEvent.source on <dialog> elements: open with showModal, close with request-close button.
- ToggleEvent.source on <dialog> elements: open with button, close with light dismiss.
focus-after-close.html 6 / 7 passingChrome 7 / 70 failedExempt
Exempt from the 0.1 gate until a renderer answers geometry
6 of 7 subtests pass; the 7th focuses a button positioned at top: innerHeight + 10px and waits for the scroll event focus() causes when it scrolls the button into view (documentElement.scrollTop > 0), then checks dialog.close() restores focus without scrolling; scrolling an element into view needs its layout box, and with no renderer focus() scrolls nothing, so the scroll event never comes and the file times out
- Failing assertion
- TIMEOUT: Focus should not scroll if the previously focused element is outside the viewport (6/7 pass)
/html/semantics/interactive-elements/the-dialog-element/focus-after-close.html TIMEOUT 6 / 7
- ¶
TIMEOUTFocus should not scroll if the previously focused element is outside the viewport
Test timed out
6 passing subtests
- Focus should be moved to the previously focused element (Simple dialog usage)
- Focus should be moved to the previously focused element (Complex dialog usage)
- Focus should be moved to the previously focused element even if it has moved in between show/close
- Focus should be moved to the previously focused element even if it has moved to shadow DOM root in between show/close
- Focus should be moved to the body if the previously focused element is removed
- Focus should be moved to the shadow DOM host if the previouly focused element is a shadow DOM node
form-submit-dialog-shadow.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- <form method=dialog> should not submit across shadow boundaries.
inert-does-not-match-disabled-selector.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Tests inert elements do not match the :disabled selector.
inert-focus-in-frames.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Tests inert node focusing across frames and iframes.
inert-node-is-unfocusable.html 16 / 16 passingChrome 16 / 160 failedClean
16 passing subtests
- #html is not focusable
- #body is not focusable
- #top-dialog is focusable
- #top-dialog-button is focusable
- #bottom-dialog is not focusable
- #bottom-dialog-button is not focusable
- #container is not focusable
- #text is not focusable
- #datetime is not focusable
- #color is not focusable
- #select is not focusable
- #optgroup is not focusable
- #option is not focusable
- #contenteditable-div is not focusable
- #tabindex-span is not focusable
- #anchor is not focusable
inert-node-is-unselectable.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that inert nodes cannot be selected. The test passes if the only text you can select is inside the dialog.
inertness-with-modal-dialogs-and-iframes.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- Initially, no node is inert
- Modal dialog in the outer iframe marks outer nodes in that iframe as inert.
- Modal dialog in the inner iframe marks outer nodes in that iframe as inert.
- Modal dialogs in both iframes mark outer nodes in these iframes as inert.
- Modal dialog in the main document marks outer nodes as inert. Contents of the outer iframe aren't marked as inert.
- Modal dialogs in the main document and inner iframe mark outer nodes as inert. Contents of the outer iframe aren't marked as inert.
- Modal dialogs in the main document and outer iframe mark outer nodes as inert. Contents of the outer iframe aren't marked as inert.
- Modal dialogs in the main document and both iframes mark outer nodes as inert. Contents of the outer iframe aren't marked as inert.
non-modal-canceling.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Non-modal dialogs should not be cancelable via ESC
non-modal-dialog-does-not-block-mouse-events.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Ensure that non-modal dialogs do not block mouse events.
remove-dialog-should-unblock-document.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that removing dialog unblocks the document.
show-modal-focusing-steps.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- focus when a modal dialog is opened
showmodal-in-shadow-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/showmodal-in-shadow-crash.html PASS none reported
No subtests were reported.
showmodal-shadow-sibling-frame-crash.html none reportedChrome —0 failedClean
/html/semantics/interactive-elements/the-dialog-element/showmodal-shadow-sibling-frame-crash.html PASS none reported
No subtests were reported.
simulated-click-inert.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Ensure that simulated click is still dispatched to an inert node.
submit-dialog-close-event.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Tests submitting a dialog on a close event triggered by a previous submission.
synthetic-click-inert.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that inert nodes still get programmatic click events
toggle-events.html 12 / 12 passingChrome 12 / 120 failedClean
12 passing subtests
- dialog.show() should fire beforetoggle and toggle events.
- dialog.show() should fire cancelable beforetoggle which does not open dialog if canceled
- dialog.show() should coalesce asynchronous toggle events.
- dialog.show() should not double-set open/close if beforetoggle re-opens
- dialog.show() should not open if beforetoggle removes
- dialog.show() should not open if beforetoggle calls showPopover
- dialog.showModal() should fire beforetoggle and toggle events.
- dialog.showModal() should fire cancelable beforetoggle which does not open dialog if canceled
- dialog.showModal() should coalesce asynchronous toggle events.
- dialog.showModal() should not double-set open/close if beforetoggle re-opens
- dialog.showModal() should not open if beforetoggle removes
- dialog.showModal() should not open if beforetoggle calls showPopover
top-layer-position.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Verifies that position:static and position:relative computed to position:absolute in the top layer.
top-layer-removal-invalidates-ua-styles.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Top layer UA styles stop applying once a dialog leaves the top layer