Re: [csswg-drafts] [css-inline-3] Naming text-box-trim et al. (#10675)

The CSS Working Group just discussed `[css-inline-3] Naming text-box-trim et al.`, and agreed to the following:

* `RESOLVED: name of properties are text-box-edge and text-box-trim`
* `RESOLVED: Use trim-start and trim-end instead of start and end`
* `RESOLVED: the value "trim-both" for property "text-box"`
* `RESOLVED: "text-box" shorthand with value "normal" set the longhands default`
* `RESOLVED: Republish as WD`

<details><summary>The full IRC log of that discussion</summary>
&lt;matthieud> fantasai:  we took resolution to split text-box-edge<br>
&lt;matthieud> fantasai:  one for line box sizing, one for triming block container<br>
&lt;matthieud> fantasai:  we need to discuss some details about the syntax, the names of the properties, names of the values<br>
&lt;matthieud> fantasai:  there is a new property line-fit-edge which inherits<br>
&lt;matthieud> fantasai:  and also text-box-edge not inherited initial value auto which compute to the value of the line-fit-edge<br>
&lt;matthieud> fantasai: and shorthands for them together<br>
&lt;matthieud> fantasai:  with a "normal" keyword for the shorthand which compute to "none" and "auto"<br>
&lt;astearns> seems OK to me, no better idea for line-fit-edge<br>
&lt;matthieud> florian: which part is resolved and which part is your invention ?<br>
&lt;matthieud> no resolved name for line-fit-edge, no resolved on the new keyword, no discussion for the shorthand text-box syntax<br>
&lt;matthieud> fantasai: no resolved name for line-fit-edge, no resolved on the new keyword, no discussion for the shorthand text-box syntax<br>
&lt;chrishtr> Koji from my team reviewed and thought it was fine, so good from Chrome's POV<br>
&lt;ntim> lgtm for the whole proposal<br>
&lt;matthieud> chrishtr: names of properties are fine<br>
&lt;matthieud> chrishtr: line-fit-edge details might need more discussion about behavior<br>
&lt;matthieud> Rossen4:  we can resolve on the names ?<br>
&lt;ntim> I think these are already resolved on<br>
&lt;matthieud> RESOLVED: name of properties are text-box-edge and text-box-trim<br>
&lt;matthieud> fantasai: the shorthand is text-box but for the values there is a new normal keyword but the rest is weird like text-box-start ... etc<br>
&lt;matthieud> fantasai: maybe we should rename some values to add trim-start trim-end trim-both<br>
&lt;matthieud> fantasai: would be consistent with text-spacing<br>
&lt;matthieud> fantasai: or maybe trim instead of trim-both<br>
&lt;matthieud> florian: seems a bit hard to understand how they relate, so in favor of those changes<br>
&lt;fantasai> text-box: normal | &lt;'text-box-trim'> || &lt;'text-box-edge'><br>
&lt;fantasai> but text-box: start (e.g.) is pretty weird, so suggest text-box: trim-start<br>
&lt;fantasai> Precedent: text-spacing: space-all | normal | space-first | trim-start | trim-both | trim-all<br>
&lt;ntim> trim is ambiguous whether it's trim-both or trim-all<br>
&lt;matthieud> Rossen4: what is the difference between trim-both and trim-all<br>
&lt;matthieud> fantasai:  trim-all trim all characters, trim-both only trim only the start edge and end edge<br>
&lt;matthieud> florian: the important is that stuff that trim is prefixed by trim-*<br>
&lt;matthieud> florian: in the text-box case the difference between both and all doesnt exist so they have the same behavior<br>
&lt;matthieud> florian: so "trim" makes sense in the text-box case<br>
&lt;matthieud> fantasai: trim and trim-both makes sense, do we want to make the keyword shorter or not<br>
&lt;fantasai> s/makes sense/both make sense/<br>
&lt;fantasai> s/or not/or compatible with text-spacing/<br>
&lt;TabAtkins> I think the `trim-*` names sound reasonable, pesonally<br>
&lt;fantasai> sure, but between `trim` and `trim-both`?<br>
&lt;TabAtkins> Ah, trim-both, if it's less than trim-all<br>
&lt;fantasai> OK. But for text-box there's no trim-all in this case, just in text-spacing<br>
&lt;TabAtkins> Sure, but consistency is good across the props<br>
&lt;fantasai> RESOLVED: Use trim-start and trim-end instead of start and end<br>
&lt;fantasai> POLL: text-box: trim; or text-box: trim-both;<br>
&lt;ntim> B<br>
&lt;astearns> b<br>
&lt;kbabbitt> B<br>
&lt;florian> 0 (ok either way)<br>
&lt;TabAtkins> b<br>
&lt;schenney> B<br>
&lt;fantasai> (clear property is clear: none | left | right | both)<br>
&lt;Rossen4> B<br>
&lt;fantasai> 0<br>
&lt;miriam> 0<br>
&lt;ChrisL> abstain<br>
&lt;matthieud> 0<br>
&lt;fantasai> kojiishii: A<br>
&lt;ntim> We should resolve on the fact the `text-box` exists as a shorthand fwiw<br>
&lt;matthieud> RESOLVED: the value "trim-both" for property "text-box"<br>
&lt;fantasai> s/text-box/text-box-trim/<br>
&lt;matthieud> fantasai:  the initial value of text-box-edge is auto, but text-box-trim is none. What would be the one for text-box ?<br>
&lt;florian> +1 to the name and to the normal keyword<br>
&lt;astearns> +1 to what florian +1ed<br>
&lt;matthieud> PROPOSED RESOLUTION:  "text-box" shorthand with value "normal" set the longhands default<br>
&lt;ntim> +1<br>
&lt;fantasai> s/What would be the one for text-box ?/That leaves 'text-box: none' or 'text-box: auto' for setting the initial value, and both of these read very weirdly, so I added a normal keyword to the shorthand/<br>
&lt;matthieud> RESOLVED: "text-box" shorthand with value "normal" set the longhands default<br>
&lt;fantasai> https://drafts.csswg.org/css-inline-3/#changes<br>
&lt;matthieud> fantasai:  I will republish the working draft<br>
&lt;fantasai> RESOLVED: Republish as WD<br>
&lt;matthieud> TabAtkins: don't have anything ready for republication<br>
</details>


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


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

Received on Wednesday, 7 August 2024 23:33:16 UTC