-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[anchor-position] Implement the anchor specifier concept
After adding `anchor-default` property, anchor references are now not just a name, but a tri-state "anchor specifier", which can be [1]: - `implicit`: the implicit anchor defined by other specs (eg popover) - `default`: the default anchor defined by `anchor-default` property - named: an explicit anchor name This patch: - Adds the AnchorSpecifierValue class to represent an anchor specifier, by converting the existing AnchorScrollValue class - Uses AnchorSpecifierValue in `anchor-scroll` property and `anchor()` functions - Changes clients of the above, namely, AnchorScrollData and NGAnchorEvaluatorImpl to handle anchor specifier properly [1] https://drafts4.csswg.org/css-anchor-1/#target-anchor-element Bug: 1412633 Change-Id: I0655d2ce4e8c918642f925df294fbdc11137fa7a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4228517 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1103476}
- Loading branch information
1 parent
0e45aae
commit 003ae32
Showing
22 changed files
with
314 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.