Re: [csswg-drafts] [css-text-decor-4] Allow to interpolate between `auto` and length values in `text-decoration-trim` (#13036)

The spec for `auto` says

> The UA chooses a trim amount that ensures that if two identical underlined elements appear side-by-side they do not appear to have a single underline

In the current Gecko implementation, we simply resolve `auto` to a small (font-size-relative) length, which can easily happen at computed-value time (and enabling animation between this and `<length>` values is trivial).

I can imagine a more sophisticated implementation of `auto` that would apply a non-zero amount of inset only when an adjacent element has decoration line that would abut the current one, which might make it trickier, but the spec doesn't currently call for this.

(If the description of `auto` said something more like "if two identical underlined elements appear side-by-side, the UA applies a trim amount...", there would be a clear argument that it should be context-dependent.)

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


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

Received on Friday, 31 October 2025 09:09:16 UTC