Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 26, 2024

This CL implements style containment for anchor-as 'scoped to a sub-
tree' as defined in the css-contain-2 spec[1]. Tests are made tentative
as this is currently a CSSWG resolution, not in any spec yet.

We now need to store all in-flow candidate anchors, not only out-of-
flow ones, because the selected anchor depends on whether the querying
element is in the same contain:style subtree or not.

[1] https://drafts.csswg.org/css-contain-2/#property-scoped
-to-a-sub-tree
[2] w3c/csswg-drafts#9100

Bug: 1518526
Change-Id: I745245eb22ccb4af7aa5cfd814af2955077085b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5237173
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1253236}

This CL implements style containment for anchor-as 'scoped to a sub-
tree' as defined in the css-contain-2 spec[1]. Tests are made tentative
as this is currently a CSSWG resolution, not in any spec yet.

We now need to store all in-flow candidate anchors, not only out-of-
flow ones, because the selected anchor depends on whether the querying
element is in the same contain:style subtree or not.

[1] https://drafts.csswg.org/css-contain-2/#property-scoped
-to-a-sub-tree
[2] w3c/csswg-drafts#9100

Bug: 1518526
Change-Id: I745245eb22ccb4af7aa5cfd814af2955077085b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5237173
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1253236}
Copy link
Collaborator

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

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 merged commit 30daa7e into master Jan 29, 2024
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-5237173 branch January 29, 2024 12:23
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.

4 participants