Re: [csswg-drafts] [css-align-3] Abspos alignment in vertical axis should care about align-self, just like horizontal/justify-self (#4983)

The CSS Working Group just discussed `Abspos alignment in vertical axis should care about align-self, just like horizontal/justify-self`, and agreed to the following:

* `RESOLVED: align-self affect the block static position of abspos element`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Abspos alignment in vertical axis should care about align-self, just like horizontal/justify-self<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/4983<br>
&lt;fremy> ScribeNick: fremy<br>
&lt;fremy> fantasai: when you use abspos, and auto inset on both sides, when we try to find its static position<br>
&lt;cbiesinger> yeah, I think AmeliaBR is right wrt the interaction not causing additional scrollbars<br>
&lt;TabAtkins> So in `div { width: max-content; contain-intrinsic-size: 100px 100px; overflow: auto; }` with 150px of content, the element is 100px by 100px, with a vertical scrollbar only. (Unless for some reason there's an unbreakable inline in the content that wouldn't fit into 84px.)  But in `div { width: max-content; height: 50px; contain-intrinsic-size: 100px 100px; overflow: auto; }` with 150px of content, the element is 116px by 50px with a vertical<br>
&lt;TabAtkins> scollbar, because the cis overflowed the specified height and triggered a scrollbar, so scrollbar size is part of the max-content size. The content lays out into there, and continues to have *only* a vertical scrollbar, again unless the content has an unbreakable inline long enough to force a horizontal one.<br>
&lt;fremy> fantasai: this historically depends on the size of its containing block to decide on which margin we ingore<br>
&lt;fremy> fantasai: if you use alignment properties however, like end, then we will honor that<br>
&lt;fremy> fantasai: we didn't do that in the vertical axis however<br>
&lt;fremy> fantasai: so, the question is why not?<br>
&lt;fremy> fantasai: I would like to make that change, and propose it to the group<br>
&lt;fremy> iank_: today, align-self affects where the static position is in the inline position of the static contaning block, not the actual containing block<br>
&lt;fremy> fantasai: yes<br>
&lt;fremy> fantasai: the proposal is to also do that in the other direction (in the block axis) of the static block containig block<br>
&lt;cbiesinger> TabAtkins: that matches my understanding<br>
&lt;fremy> iank_: don't we do that for flexbox?<br>
&lt;fremy> fantasai: maybe, I'm not sure<br>
&lt;fremy> Rossen_: I'm pretty sure we do<br>
&lt;fantasai> s/align-self/justify-self/<br>
&lt;fremy> iank_: if that's in the direction of the static block containg block, that sounds fine to me<br>
&lt;fremy> fantasai: ok<br>
&lt;fremy> iank_: that sounds good to me then<br>
&lt;astearns> q?<br>
&lt;fremy> cbiesinger: one concern though<br>
&lt;astearns> ack dholbert<br>
&lt;fremy> cbiesinger: so far, all properties don't affect all layout modes<br>
&lt;fremy> cbiesinger: like in flexbox, justify-self don't apply (?)<br>
&lt;fremy> cbiesinger: not sure we should change that<br>
&lt;fremy> fantasai: that's an interesting point<br>
&lt;fremy> iank_: justify-self doesn't work today<br>
&lt;fremy> fantasai: I think we should take that as a separate question<br>
&lt;fremy> fantasai: whether to make justify-self apply to the flexbox case<br>
&lt;iank_> https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=8037<br>
&lt;fremy> iank_: I am looking at what chrome is doing today<br>
&lt;fremy> iank_: basically justify-self should probably work on that case, that seems fine to me<br>
&lt;fremy> cbiesinger: but justify-self doesn't mean anything for flexbox, that's why it doesn't apply though<br>
&lt;fremy> iank_: we might run into some webcompat issues yeah<br>
&lt;fremy> cbiesinger: webcompat is one thing, but more than that, I'm not sure it makes sense<br>
&lt;fremy> fantasai: we want to make align-self apply in the vertical axis (?)<br>
&lt;fremy> fantasai: align-self does not affect the static position in that layout mode but it would probably be useful<br>
&lt;fremy> iank_: you mean block direction of the static containing block right?<br>
&lt;fremy> fantasai: yes<br>
&lt;fremy> iank_: and in block layout?<br>
&lt;fremy> fantasai: it's defined to be zero height in that case<br>
&lt;fremy> iank_: still sounds fine then<br>
&lt;fantasai> s/it's/staticpos rectangle/<br>
&lt;TabAtkins> I asked one more question about the previous issue &lt;https://github.com/w3c/csswg-drafts/issues/4415#issuecomment-621365480> that could use some opinions.<br>
&lt;fremy> astearns: so, do we make that a proposed resolution ?<br>
&lt;fremy> astearns: any objection to that?<br>
&lt;fremy> astearns: if that doesn't cause webcompat though<br>
&lt;fremy> fantasai: we definitely need to look into flex more closely, but I think the case we discuss now should be fine wrt web compat<br>
&lt;fremy> astearns: proposed resolution is to have align-self affect the vertical static position of abspos element<br>
&lt;fremy> s/vertical/block<br>
&lt;fremy> astearns: any objection?<br>
&lt;fremy> RESOLVED: align-self affect the block static position of abspos element<br>
</details>


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

Received on Wednesday, 29 April 2020 17:54:03 UTC