WPT
wpt / html / semantics / the-button-element / command-and-commandfor / on-dialog-behavior.html
Spec: HTML ↗
Runs: Chrome 155.0.8042.0 (wpt@a1ecd0c09, 2026-09-04) | Firefox 157.0a1 (wpt@e23cee339, 2026-09-04) | Safari 251 preview (wpt@e7122b73f, 2026-09-04) | Ladybird 1.0-52f0f (wpt@0588f3896, 2026-09-04) | Servo Servo 0.6 (wpt@2c385f65e, 2026-09-04) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 104/104 | 104/104 | 104/104 | 104/104 | 70/104 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| invoking (with command property as show-modal) closed dialog opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command property as show-modal) closed dialog with preventDefault is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command property as show-modal) while changing command still opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command attribute as show-modal) closed dialog opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command attribute as show-modal) closed dialog with preventDefault is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command attribute as show-modal) while changing command still opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command property as sHoW-mOdAl) closed dialog opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command property as sHoW-mOdAl) closed dialog with preventDefault is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command property as sHoW-mOdAl) while changing command still opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command attribute as sHoW-mOdAl) closed dialog opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command attribute as sHoW-mOdAl) closed dialog with preventDefault is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (with command attribute as sHoW-mOdAl) while changing command still opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open dialog closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as close) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open dialog closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as close) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open dialog closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command property as cLoSe) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open dialog closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to close (with command attribute as cLoSe) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command property as request-close) open dialog closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as request-close) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as request-close) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as request-close) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as request-close) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command property as request-close) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command property as request-close) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command property as request-close) open dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command property as request-close) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command attribute as request-close) open dialog closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as request-close) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as request-close) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as request-close) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as request-close) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command attribute as request-close) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command attribute as request-close) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command attribute as request-close) open dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command attribute as request-close) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command property as reQuEst-Close) open dialog closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as reQuEst-Close) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as reQuEst-Close) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as reQuEst-Close) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command property as reQuEst-Close) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command property as reQuEst-Close) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command property as reQuEst-Close) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command property as reQuEst-Close) open dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command property as reQuEst-Close) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command attribute as reQuEst-Close) open dialog closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as reQuEst-Close) open dialog closes and sets returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as reQuEst-Close) open dialog closes and overrides returnValue | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as reQuEst-Close) open dialog closes and overrides returnValue when empty string | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close with value (with command attribute as reQuEst-Close) open dialog closes and doesn't override returnValue when missing value attribute | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command attribute as reQuEst-Close) open dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command attribute as reQuEst-Close) open modal dialog with preventDefault is no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking to request-close (with command attribute as reQuEst-Close) open dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking to request-close (with command attribute as reQuEst-Close) open modal dialog while changing command still closes | PASS | PASS | PASS | PASS | FAIL | — |
| invoking (as show-modal) open dialog is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as show-modal) open modal, while changing command still a no-op | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as show-modal) closed popover dialog opens as modal | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as close) already closed dialog is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as request-close) already closed dialog is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as show-modal) dialog as open popover=manual is noop | PASS | PASS | PASS | PASS | FAIL | — |
| invoking (as show-modal) dialog as open popover=auto is noop | PASS | PASS | PASS | PASS | FAIL | — |
| invoking (as close) dialog as open popover=manual is noop | PASS | PASS | PASS | PASS | FAIL | — |
| invoking (as close) dialog as open popover=auto is noop | PASS | PASS | PASS | PASS | FAIL | — |
| invoking (as request-close) dialog as open popover=manual is noop | PASS | PASS | PASS | PASS | FAIL | — |
| invoking (as request-close) dialog as open popover=auto is noop | PASS | PASS | PASS | PASS | FAIL | — |
| invoking (as show-modal) dialog that is removed is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as show-modal) dialog from a detached invoker | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as show-modal) detached dialog from a detached invoker | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as close) dialog that is removed is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as close) dialog from a detached invoker | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as close) detached dialog from a detached invoker | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as request-close) dialog that is removed is noop | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as request-close) dialog from a detached invoker | PASS | PASS | PASS | PASS | PASS | — |
| invoking (as request-close) detached dialog from a detached invoker | PASS | PASS | PASS | PASS | PASS | — |