Re: [csswg-drafts] [css-anchor-1][css-position] Add the “centering” behavior which is now defined as an example in the specs as something built-in (#8979)

Brought up in the CSSWG meeting right now is the idea of an `align-self: anchor-center;` value, which will automatically center over the anchor (assuming one is specified via `anchor-default`).

Then the code would just be `left: 0; right: 0; align-self: anchor-center;`, DONE. That's pretty darn good! And it would allow us to specify the "shift off-center if needed to avoid overflow"  behavior automatically, without having to do more complicated things in the left/right properties.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8979#issuecomment-1644394907 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 20 July 2023 18:26:45 UTC