[wpt-sync] Sync PR 44973 - [inert] The modal dialog and the fullscreen element should escape inertness of ancestor
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox125 fixed)
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 44973 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/44973
Details from upstream follow.
zhoupeng <zhoupeng.1996@bytedance.com> wrote:
[inert] The modal dialog and the fullscreen element should escape inertness of ancestor
According to the spec:
https://html.spec.whatwg.org/#modal-dialogs-and-inert-subtreesWhile document is so blocked, every node that is connected to
document, with the exception of the subject element and its flat tree
descendants, must become inert. subject can additionally become inert
via the inert attribute, but only if specified on subject itself
(i.e., subject escapes inertness of ancestors); subject's flat tree
descendants can become inert in a similar fashion.The modal dialog should escape the inertness set by an ancestor
with the inert attribute. Consider this test case:
\<div inert>
\<dialog>find me!\</dialog>
\</div>
\<script>document.querySelector("dialog").showModal()\</script>The return value of
window.find('me')should be true,
because\<dialog>does not specify the inert attribute.Bug: 328339024
Change-Id: Ib6d0aa00d63740b4e13457c38e4602a595bb26ba
Reviewed-on: https://chromium-review.googlesource.com/5348000
WPT-Export-Revision: 572e32cde94507350c500edaa712a15e1c72dafd
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 3 subtests
Status Summary
Firefox
OK : 2
PASS : 6
Chrome
OK : 2
FAIL : 6
Safari
OK : 1
FAIL : 6
ERROR: 1
Links
Comment 4•2 years ago
|
||
| bugherder | ||
Description
•