Skip to content

[inert] Let modal dialogs escape inertness from ancestors - #33997

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-3634684
May 24, 2022
Merged

chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-3634684

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 9, 2022 •

Copy link
Copy Markdown
Collaborator

If an ancestor of a modal <dialog> has the 'inert' attribute, the dialog
and its subtree will no longer be inert.

However, if the 'inert' attribute is in the <dialog> itself, then the
subtree will still be inert.

This aligns Blink with Gecko and WebKit. The spec conversation about
this topic is in whatwg/html#7808

Bug: 1323680

TEST=external/wpt/inert/inert-with-modal-dialog-001.html
TEST=StyleResolverTest.IsInertWithAttributeAndDialog

Cq-Include-Trybots: luci.chromium.try:linux-blink-web-tests-force-accessibility-rel
Change-Id: Id2752ce3d1c8985b68b1d700710c3ff3eb100714
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3634684
Reviewed-by: Aaron Leventhal <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Oriol Brufau <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1006974}

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot
chromium-wpt-export-bot force-pushed the chromium-export-cl-3634684 branch from 747c147 to 57406be Compare May 10, 2022 19:02
@chromium-wpt-export-bot
chromium-wpt-export-bot force-pushed the chromium-export-cl-3634684 branch 2 times, most recently from 5712802 to 5a91fc6 Compare May 24, 2022 11:56
If an ancestor of a modal <dialog> has the 'inert' attribute, the dialog
and its subtree will no longer be inert.

However, if the 'inert' attribute is in the <dialog> itself, then the
subtree will still be inert.

This aligns Blink with Gecko and WebKit. The spec conversation about
this topic is in whatwg/html#7808

Bug: 1323680

TEST=external/wpt/inert/inert-with-modal-dialog-001.html
TEST=StyleResolverTest.IsInertWithAttributeAndDialog

Cq-Include-Trybots: luci.chromium.try:linux-blink-web-tests-force-accessibility-rel
Change-Id: Id2752ce3d1c8985b68b1d700710c3ff3eb100714
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3634684
Reviewed-by: Aaron Leventhal <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Oriol Brufau <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1006974}
@chromium-wpt-export-bot
chromium-wpt-export-bot force-pushed the chromium-export-cl-3634684 branch from 5a91fc6 to be0a42d Compare May 24, 2022 18:47
@chromium-wpt-export-bot
chromium-wpt-export-bot merged commit 526608c into master May 24, 2022
@chromium-wpt-export-bot
chromium-wpt-export-bot deleted the chromium-export-cl-3634684 branch May 24, 2022 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants