- From: fantasai via GitHub <noreply@w3.org>
- Date: Wed, 04 Mar 2026 18:32:36 +0000
- To: public-css-archive@w3.org
fantasai has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-5][css-inline-3] Rounding to device pixels == Following up on https://github.com/w3c/csswg-drafts/issues/3720... Several situations that were brought up as motivating use cases for `env(hairline)` were actually about forcing device-pixel rounding. This isn't something we really want authors to be thinking about normally--stylesheets peppered with device-pixel rounding functions would be a nightmare to understand and maintain. Ideally the browser engine should handle rounding things wherever rounding is the right thing to do, so one question is: are there places where we should be doing device-pixel rounding that we aren't right now? One place that comes to mind is `line-height`. If you have a fractional line height, your lines will not have consistent rhythm. Should `line-height` (and thus the `lh` unit) round to the nearest device pixel? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13600 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 4 March 2026 18:32:37 UTC