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

@litherum wrote:

> I'm also not sure about the `<length>` part of `<length-percentage>`. Authors don't know how wide their text is going to when it finally gets rendered (because they don't know things like which font will be used, whether the user has boosted text sizes, etc.), so it seems like there is no `<length>` value they could use that would be right.

A `<length>` value in font-relative units (probably `em`, though others like `ch` or `ic-width` could be used) is perhaps the most likely to be useful/robust here.

I'm having a harder time picturing a lot of use cases where a percentage seems better than a (potentially font-relative) length. I do see the example @SebastianZ mentioned in https://github.com/w3c/csswg-drafts/issues/4557#issuecomment-599147218 where an "underline" animates from 0 to 100% width, but this seems like a very niche case, and I'm not entirely convinced it justifies added complexity within the web platform just to make this effect more convenient.

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


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

Received on Wednesday, 6 July 2022 21:38:32 UTC