Re: [csswg-drafts] [css-inline-3] leading-trim accumulation (#5426)

I propose that we go with "take metric from closest that asks for trimming" among the three listed from the meeting notes. I don't think we need any new keyword values.

More precise wording: a line is trimmed according to the `text-box-trim` property of its nearest ancestor that specifies `text-box-trim`. (Note: if the line is not the one affected--e.g. not the first or last line under that ancestor, depending on the value of `text-box-trim`--it is unaffected.)

Note: we don't need this spec language for `text-box-edge`, because it's inherited.

Note: This is different than inheritance, because it only applies to the first line of any descendant of the ancestor, not to all first lines of different paragraphs. The line referred to by `text-box-trim` is similar to `::first-line` ([example](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Adiv%3A%3Afirst-line%20%7B%20color%3A%20red%20%7D%0A%3C%2Fstyle%3E%0A%3Cdiv%3E%0A%20%20%3Cp%3E123%3Cbr%3E456%0A%20%20%3Cp%3E123%3Cbr%3E456%0A%20%20%3Cp%3E123%3Cbr%3E456)).


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


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

Received on Thursday, 21 December 2023 18:46:18 UTC