No antialiasing of 1px SVG strokes
Reported by
keyam...@gmail.com,
Jun 28 2016
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 Example URL: https://codepen.io/anon/pen/LZWeQO Steps to reproduce the problem: 1. Using a non-retina (or low PPI) display, visit https://codepen.io/anon/pen/LZWeQO 2. The shape on the left is using a 1px stroke. The shape on the right is the exact same shape but the strokes were converted to fills. You should be able to see that the shape on left is badly aliased. What is the expected behavior? What went wrong? There is no or little antialiasing when using 1px strokes in SVGs. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 51.0.2704.103 Channel: stable OS Version: OS X 10.11.5 Flash Version: I have been been able to replicate this issue on both a Macbook Air and a Windows machine. You could reproduce this issue using any SVG with 1px strokes (stroke-width="1px"). The strokes should be diagonal or curves; otherwise there worn't be any aliasing to begin with.
,
Jun 29 2016
I guess this is hitting the hairline code-path in Skia.
,
Jun 29 2016
,
Jun 29 2016
Indeed. Only noticeable for diagonal lines, with software rasterization. Skia bug: https://bugs.chromium.org/p/skia/issues/detail?id=5484
,
Jun 29 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 29 2017
,
Jun 29 2017
,
Jun 29 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by keyam...@gmail.com
, Jun 28 2016