Bug 151150 - Half-pixel borders round to 0 on non-retina screen
Summary: Half-pixel borders round to 0 on non-retina screen
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 9
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 13:11 PST by Nikita Vasilyev
Modified: 2015-11-13 15:18 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2015-11-11 13:11:35 PST
Reduction:
data:text/html,<div%20style="border:0.5px%20solid%20black">Box</div>

Actual:
The black border is invisible on non-retina screen.

Expected:
Ideally, I'd love to see the border to be half transparent black border on non-retina screen. E.g.: border: 1px solid rgba(0,0,0,0.5)

Notes:
In Web Inspector, I had to define lots of retina-specific half-pixel borders inside of "@media (-webkit-min-device-pixel-ratio: 2)". Would be nice I didn't have to do it.
Comment 1 zalan 2015-11-13 15:18:21 PST
Best we can do is: http://trac.webkit.org/changeset/192444