Re: [csswg-drafts] [css-text-decor-4] Allow percentages in `text-decoration-trim` (#8403)

OK, thanks - yeah, now that makes sense.

FWIW, I think essentially the same thing could be done with the `text-decoration-inset` version (once percentages are supported). All the same information is available as inputs to the animation. It'd just be used in a different version of the calculation, but whatever can be calculated as a length for the line can also be calculated as an amount to inset from the original length.

I think, though, that for the common use cases, the currently-spec'd `-inset` (formerly `-trim`) property is the more author-friendly approach, applying the specified adjustment(s) to the ends of the standard decoration line. Requiring an author to resort to `calc()` just to extend each end of the line by a fixed amount feels overly cumbersome to me.

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


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

Received on Thursday, 30 October 2025 10:39:41 UTC