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

> I do think the supporting for fractional order px value … is more useful than we finally only can have a new hairline key word value

There's nothing stopping you from using a fractional px value for border width in CSS — it's just not guaranteed to snap to an even number of device pixels, and will therefore look bad on a screen with a different resolution than you designed it for.  If this is really important, however, you could use [media queries to check for the screen resolution](https://drafts.csswg.org/mediaqueries/#resolution).

The benefit of the keyword is that the browser would figure out the exact value required to get a crisp line.

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

Received on Thursday, 14 March 2019 16:41:18 UTC