W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

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

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Mar 2019 20:20:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-473045022-1552594849-sysbot+gh@w3.org>
> 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

I think it should. If it was only a 1x screen, then use opacity to simulate the thinner line, like is typically done for antialiasing scaled images. So a 0.5px line is rendered with 1px at half the opacity of what it normally would be. On a 3x screen, it would use 2 device pixels, at 0.75 opacity. 

GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3720#issuecomment-473045022 using your GitHub account
Received on Thursday, 14 March 2019 20:20:51 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:45 UTC