Re: [csswg-drafts] [css-text-decor] Rounding of text-decoration-thickness (#12696)

Looking at [the code](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/paint/text_decoration_info.cc;drc=3f8932533ccf9426786d1e0416d2cad13f1c991d;l=102) Chrome behavior seems to be inconsistent. It uses `round()` for a Length thickness but does not round a thickness taken from the font, or `auto`. That rounding would be in device pixels, I think, because it is post zoom/device pixel ratio. Chrome also sets a min width of 1px, apparently.

All this is at used-value time. It maybe hard to do it at computed-value time due to the font interactions and need for zoom and DPI. Currently I lean toward no change.



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


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

Received on Tuesday, 2 September 2025 13:07:19 UTC