Closed Bug 1884114 Opened 2 years ago Closed 2 years ago

[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)

task

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
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-subtrees

While 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

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

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae2ff13d22e6 [wpt PR 44973] - [inert] The modal dialog and the fullscreen element should escape inertness of ancestor, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.