Re: [csswg-drafts] [css-text-4] Rethinking 'text-space-collapse' and 'text-space-trim'

> > I was thinking of code blocks. For them you normally want whitespace before and after the actual code to be discarded.
> 
> That's the `trim-inner` value.

Oh, right. Well, you actually want both sides trimmed, inside and outside, though the outer whitespace is already collapsed by default via the whitespace collapsing algorithm.

The inline-block use case is still valid, though, as in https://jsfiddle.net/SebastianZ/qLjh7wup/3/. (Though the use cases I am currently thinking of can be solved by using Flexbox or Grid layout, which automatically discard the white space around their items. As this logic somewhat conflicts with `text-space-trim`, I created #3124.)

Sebastian

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

Received on Tuesday, 18 September 2018 11:53:53 UTC