-
Notifications
You must be signed in to change notification settings - Fork 719
[css-anchor-position] Default alignment in center track. #11803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Mmm, I don't have a strong preference for either. Quickly testing: https://codepen.io/kizu/pen/qEBRjzo?editors=1100 On the left — ![]() If the inset is larger than the width of the anchor, then I prefer If there are actual use cases where this plays a role, we can change it. Otherwise, given this is just a default that can be changed, and I don't see a big effect from the change, I'd stick with the |
By default, |
The CSS Working Group just discussed
The full IRC log of that discussion |
https://bugs.webkit.org/show_bug.cgi?id=291863 rdar://149715581 Reviewed by Anne van Kesteren. CSSWG recently changed the default alignment of the center track from anchor-center to center, so this updates defaultAlignmentForAxis() accordingly. See w3c/csswg-drafts#11803 * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-align-justify-wm-dir.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-align-justify.html: * Source/WebCore/rendering/style/PositionArea.cpp: (WebCore::PositionArea::defaultAlignmentForAxis const): Canonical link: https://commits.webkit.org/293961@main
…lignment in center track, a=testonly Automatic update from web-platform-tests [css-anchor-position-1] Update default alignment in center track w3c/csswg-drafts#11803 -- wpt-commits: d4431118f031349669986c25cc5d460cde3e0877 wpt-pr: 52098
…lignment in center track, a=testonly Automatic update from web-platform-tests [css-anchor-position-1] Update default alignment in center track w3c/csswg-drafts#11803 -- wpt-commits: d4431118f031349669986c25cc5d460cde3e0877 wpt-pr: 52098
…lignment in center track, a=testonly Automatic update from web-platform-tests [css-anchor-position-1] Update default alignment in center track w3c/csswg-drafts#11803 -- wpt-commits: d4431118f031349669986c25cc5d460cde3e0877 wpt-pr: 52098
…lignment in center track, a=testonly Automatic update from web-platform-tests [css-anchor-position-1] Update default alignment in center track w3c/csswg-drafts#11803 -- wpt-commits: d4431118f031349669986c25cc5d460cde3e0877 wpt-pr: 52098 UltraBlame original commit: e5e811c5f392be737892959bf99260025691237b
…lignment in center track, a=testonly Automatic update from web-platform-tests [css-anchor-position-1] Update default alignment in center track w3c/csswg-drafts#11803 -- wpt-commits: d4431118f031349669986c25cc5d460cde3e0877 wpt-pr: 52098 UltraBlame original commit: e5e811c5f392be737892959bf99260025691237b
…lignment in center track, a=testonly Automatic update from web-platform-tests [css-anchor-position-1] Update default alignment in center track w3c/csswg-drafts#11803 -- wpt-commits: d4431118f031349669986c25cc5d460cde3e0877 wpt-pr: 52098 UltraBlame original commit: e5e811c5f392be737892959bf99260025691237b
I'm wondering if the default alignment in the center track should be
center
instead ofanchor-center
.This makes a difference if the author applies asymmetric insets, e.g. given a 100px anchor, suppose there's a 10px inset on the right. Should the item be centered against the entire anchor, or against the inset area?
I suspect the answer should be the inset area, i.e.
center
. @kizu wdyt?The text was updated successfully, but these errors were encountered: