[csswg-drafts] [css-anchor-position] Default alignments for inset areas are wrong (#10313)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-position] Default alignments for inset areas are wrong ==
(I thought we had already edited this in, but apparently not...)

The current resolution of `normal` alignment is defined as follows:
* If the inset area includes the center region in an axis the default alignment in that axis is `anchor-center`
* Otherwise, it’s the opposite of the region it specifies: if it’s specifying the "start" region of its axis, the default alignment in that axis is `end`.

But actually it should be:
* If the inset-area is a side track, then the alignment is towards the center track (i.e. in the opposite direction of the named track).
* If the inset-area is the center track, or all tracks, then alignment is anchor-center.
* If the inset-area includes the center track and a side track, then alignment is towards the excluded track.

This behavior for the double tracks gets you the correct behavior for more cases, and is easier to switch to the other common behavior (centering) because centering isn't conditional on which area you're in.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10313 using your GitHub account


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

Received on Monday, 13 May 2024 01:05:15 UTC