Re: [csswg-drafts] [css-text-4] Re-use justify-content instead of text-group align? (#5703)

The CSS Working Group just discussed `[css-text-4] Re-use justify-content instead of text-group align?`.

<details><summary>The full IRC log of that discussion</summary>
&lt;bramus> jensimmons: I can describe<br>
&lt;bramus> jensimmons: text-wrap is a property and balance is value for it<br>
&lt;bramus> jensimmons: it enables to do balanced text for text that spans multiple lines<br>
&lt;fantasai> -> https://www.w3.org/TR/css-text-4/#text-group-align-property<br>
&lt;bramus> jensimmons: text-group in text level 4 is the new property to accomplish that use case<br>
&lt;bramus> jensimmons: do we need this new property or should we use justify-content?<br>
&lt;fantasai> -> https://www.w3.org/TR/css-align-3/#align-justify-content<br>
&lt;bramus> ntim: makes sense to reuse justify-content<br>
&lt;bramus> ntim: [missed]<br>
&lt;bramus> iank_: justifty-content will start new formatting context, right?<br>
&lt;bramus> fantasai: yes<br>
&lt;bramus> iank_: so that is one relative difference between the two<br>
&lt;bramus> fantasai: we could define it to not do that<br>
&lt;bramus> iank_: would align-content be harmonized?<br>
&lt;bramus> fantasai: that one needs it<br>
&lt;bramus> fantasai: in terms of inline-axis one thing that gets weird when we don}t create formatting context: what happens when we have floats?<br>
&lt;bramus> fantasai: (gives example)<br>
&lt;bramus> florian: I think it’s good to create the formatting context<br>
&lt;bramus> florian: then floats dont do strange things<br>
&lt;fantasai> s/(gives example)/for floats inside the box it's straightforward, but if floats are intruding from the parent... it gets weird/<br>
&lt;bramus> astearns: questoins about formatting contexts and floats are questions for either new property or the existing property<br>
&lt;bramus> iank_: float question falls into two sub questions<br>
&lt;bramus> iank_: would make easier if floats dont intrude from outside<br>
&lt;bramus> iank_: how floats withing that ifc interacts is another question.<br>
&lt;bramus> florian: i think alan is right that that concern applies to both properties<br>
&lt;bramus> iank_: I want to point out formatting context difference.<br>
&lt;bramus> fantasai: I thiknk what florian is trying to say: either way since neithe rpropert is implemented right now, we can decide what to do. question applie sto both properties<br>
&lt;bramus> iank_: slight forward compat risk with reusing justify-content<br>
&lt;bramus> fantasai: less concerned about that<br>
&lt;bramus> fantasai: currently when you have a bunch of line boxes they [missed] in container. we have to tell those boxes to be shortened<br>
&lt;florian> s/ they [missed] in/ they fill in/<br>
&lt;bramus> fantasai: and then there is this fun interaction with line boxes. say i have a div and center it. in order for it to be centered we have to shorten line boxes. that is striaghtfowrad if boxes are directly contained by div. what if that div contains other divs?<br>
&lt;bramus> fantasai: do we some kind of propagation? do we inherit? do we not affect any of the child divs? etc.<br>
&lt;bramus> fantasai: with justify-content there is more of  a consensus that you lay out all children as a unit<br>
&lt;iank_> justify-content creating a new formatting-context is a relatively large compat risk IMO<br>
&lt;bramus> fantasai: [missed]<br>
&lt;bramus> fantasai: so it will not have any effect of centering the text.<br>
&lt;bramus> iank_: if that list is shortening all the line boxes that [missed]<br>
&lt;bramus> astearns: seems like issue that is going to come up for either version of the property<br>
&lt;bramus> astearns: can we resolve on using justify-content or not?<br>
&lt;bramus> iank_: compat risk is making justify-content establish a new formatting context<br>
&lt;bramus> iank_: things suddenly become fc when they were not previously<br>
&lt;bramus> florian: assuming people already use this property<br>
&lt;bramus> iank_: exactly<br>
&lt;fantasai> specifically to blocks that are not already BFCs<br>
&lt;bramus> florian: can we have a use counter to check?<br>
&lt;bramus> iank_: i think apple folks are more interested in shipping<br>
&lt;bramus> astearns: should prioritize whether we should create new fc or not and use that info to decide if we reuse property or go with proposed thing<br>
&lt;bramus> florian: yes [missed]<br>
&lt;bramus> astearns: we are at time<br>
&lt;bramus> astearns: lets take back to github<br>
&lt;bramus> astearns: most likely need more discussion on compat issue<br>
&lt;florian> s/yes [missed]/yes, though we might still be able to go with justify-content even if we want a fc depending on the compat situation/<br>
</details>


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


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

Received on Wednesday, 18 January 2023 18:03:43 UTC