Re: [csswg-drafts] [css-align] align-self / justify-self on abspos elements isn't back compatible? (#7599)

The CSS Working Group just discussed `[css-align] align-self / justify-self on abspos elements isn't back compatible?`, and agreed to the following:

* `RESOLVED: Use the writing mode of the parent's formatting context for staticpos`
* `RESOLVED: Align justify axis of non staticpos use writing mode of their containing block`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-align] align-self / justify-self on abspos elements isn't back compatible?<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/7599<br>
&lt;dael> fantasai: This is how do we resolve the axis it operates in. When staticpos we use axis as defined by the formatting context, the parent formatting context<br>
&lt;dael> fantasai: I think we can resolve on that and then address what to do for non-staticpos<br>
&lt;dael> astearns: Prop: Use the writing mode of the parent's formatting context for staticpos<br>
&lt;dael> astearns: Sounds like that's what we need for web compat?<br>
&lt;dael> iank_: I don't have data but I would wager people are relying on this working as is<br>
&lt;dael> astearns: Obj?<br>
&lt;dael> RESOLVED: Use the writing mode of the parent's formatting context for staticpos<br>
&lt;dael> fantasai: Follow-up for non staticpos. Spec says for abspos you resolve justify and align based on containing block's writing mode. Rather than checking parent. Reason is pulling from deeper context and trying to layout with other things should use same reference axis<br>
&lt;dael> fantasai: That's why we defined it that way. Is that fine or do something different?<br>
&lt;dael> iank_: Broadly fine. For clarification if you've got a line item on containing block does that effect out of flow element?<br>
&lt;dael> fantasai: If out of flow is not staticpos it does not look at align items on anything<br>
&lt;dael> iank_: Makes sense<br>
&lt;dael> iank_: The quirk that falls out is align-self:center if you're staticpos in one axis and not in the other axis it will effect both axis<br>
&lt;dael> fantasai: Yeah. I think it's a little weird but anything else is weirder in more common cases<br>
&lt;dael> iank_: Yeah, fine with that.<br>
&lt;dael> fantasai: Align justify axis of non staticposuse writing mode of their containing block<br>
&lt;dael> RESOLVED: Align justify axis of non staticpos use writing mode of their containing block<br>
&lt;dael> iank_: Clarification- when doing this you need to say staticpos in a particular axis<br>
&lt;dael> fantasai: Yeah<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7599#issuecomment-1301493153 using your GitHub account


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

Received on Wednesday, 2 November 2022 23:36:49 UTC