I want support for fractional pixel values #114
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In native applications UI it is common to use lines that have thickness of 1 physical pixel. With web technologies it is non-trivial to render such lines on screens with a pixel ratio of greater than 1. Safari does allow for fractional values (e.g.,
border-width: 0.5px
for devicePixelRatio=2 andborder-width: 0.3333px
for devicePixelRatio=3). No other browsers support this though. Instead, we have to rely on hacks liketransform: scale(0.5)
.https://webwewant.fyi/wants/91/
Beta Was this translation helpful? Give feedback.
All reactions