Strange line between two aligned rect (svg render)
Reported by
i...@salsitasoft.com,
Oct 3 2016
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 Example URL: Steps to reproduce the problem: render svg with 2 rectangles What is the expected behavior? because rectangles are aligned, no white line between rectangles expected What went wrong? user see white line between rectangles, actually when user change browser's zoom level, white lines between rectangles sometimes present (110% zoom) sometimes absent (90% zoom) Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? No FF 49.0.1 Chrome version: Version 53.0.2785.143 m (64-bit) Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: I hope I haven't flash
,
Oct 4 2016
This is an artifact from certain (commonly used) antialiasing techniques. The interaction between the bottom edge of the upper and the top edge of the lower rectangle yields a partially transparent "line" because the abutting parts of the rectangles are "represented" as partially transparent lines. Blending two transparent lines yields a transparent line (not an opaque one.) For certain cases of hardware (GPU) accelerated rendering you would not get these artifacts. In particular example you can "fix" it to some degree by adjusting the "51.2" translation to just "51". I don't think we have any plans to do anything about this issue, so I'm going to mark this bug as WontFix. Sorry.
,
Oct 4 2016
Another possible workaround: shape-rendering="crispEdges" (for both rects) should yield seamless results -- at the expense of disabling anti-aliasing for all edges. |
||
►
Sign in to add a comment |
||
Comment 1 by sureshkumari@chromium.org
, Oct 4 2016Components: Blink>SVG
Labels: M-55 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)