Re: [csswg-drafts] [css-borders] Add a 'hairline' border-width value (#3720)

See https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width (#5210)

0.5px will result in 1 device pixel when the resolution is less than 4dppx, 2 device pixels between 4ddpx and 6dppx, etc.

If you want 1 device pixel regardless of the resolution, you can go smaller like `0.01px`, but then you risk that it could become 0px due to precision limitations before being snapped as a border width. For example, Firefox stores it as an app unit with a precision of 1/60 pixels, thus you get no border for `0.0083333333px`. Blink and WebKit store the length as a floating-point number, so you can go much lower.


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


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

Received on Sunday, 26 November 2023 19:11:10 UTC