Re: [csswg-drafts] [css-text-decor] Feature request - add a property text-decoration-length that modifies the length of the underline (#4557)

For trimming and clipping borders, CSS Backgrounds 4 currently already defines two properties [`border-limit`](https://drafts.csswg.org/css-backgrounds-4/#border-limit) and [`border-clip`](https://drafts.csswg.org/css-backgrounds-4/#border-clip).

So just throwing in `text-decoration-limit` or `text-decoration-clip` as alternatives.

And I just want to point out again that there are also use cases for _extending_ the decorations, which probably doesn't apply to borders. And with that in mind, "limit" might be the best fit, but I don't have a strong opinion for any of those names.

Though regarding border trimming, I'd claim that in many use cases people actually want to style the gaps in between elements and trim those. And they only use borders due to the lack of alternatives. Discussions about _that_ are happening in #2748, #5080 and #6748.

Sebastian

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


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

Received on Wednesday, 29 June 2022 19:11:30 UTC