Re: [csswg-drafts] [css-align-3][css-position-3] Better interaction of auto insets and self-alignment properties? (#9124)

FWIW, here's a testcase showing what non-default `align-self/justify-self` currently does, for several children of a grid with `auto` insets (top half) vs. `0` insets (bottom half):
https://jsfiddle.net/dholbert/7fze6aLt/

I think Gecko, WebKit, Blink, and [Blink-with-new-grid-staticpos-behavior](https://github.com/web-platform-tests/wpt/pull/40710#issuecomment-1661225661) all agree on the rendering of this testcase -- it looks like this:
![image](https://github.com/w3c/csswg-drafts/assets/426803/a0a460b7-280d-4bcf-9907-061dfa06dd7f)

The top half seems clearly more-usefully-centered to me.  And, taken literally, the proposed change here seems like it'd make the top half behave like the bottom half (since it'd make the used values of `auto` be `0` here), I think.  I don't think that's the intent, so we need to be extra-clear about the expected outcome here.  (E.g. there are various behaviors that are conditioned on whether or not the inset properties are `auto`, and we need to be explicit about which of those behaviors would still happen when we have an `auto`-that-we-are-treating-as-zero-due-to-this-proposal.)

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


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

Received on Thursday, 3 August 2023 00:06:15 UTC