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

Right, little detail, big difference. So that's the reason for `trim-inner`.

Though I'm still not happy with the naming of the value. I believe all values of `text-space-trim` should have similar names, either all with the prefix `trim-` or all with `discard-` (following `text-space-collapse`'s wording).

But the values were not the only thing of this proposal. What about the renaming? `discard` doesn't fit perfectly to `text-space-collapse`, which only indicates collapsing, not completely discarding. And as `white-space` is meant to be a shorthand for them, they should rather have that as prefix. Also, "white space" is a known expression while "text space" sounds a bit odd.

Last point, my proposal included a keyword `discard` for `text-space-trim` combining `discard-before` and `discard-after`, as that's probably more common than only applying it to one side.
(It also included other keywords for how to handle white space around an element, though I guess there are no real use cases for them.)

Sebastian

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

Received on Thursday, 13 September 2018 21:06:57 UTC