New issue
Advanced search Search tips

Issue 620861 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

non-scaling-stroke produces large aliasing (sometimes)

Reported by phrog...@gmail.com, Jun 16 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

Example URL:
http://phrogz.net/SVG/TurtleTest-ChromeProblem.html

Steps to reproduce the problem:
Generate SVG files using `vector-effect:non-scaling-stroke` with varying `viewBox` precision and varying amounts of path data.

(On the test URL, just load the page.)

What is the expected behavior?
non-scaling-stroke always works, producing consistent, anti-aliased stroke width.

(On the test URL, all strokes should look the 1px thick, anti-aliased.)

What went wrong?
Sometimes (not sure why) the stroking is large and aliased.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes 

Does this work in other browsers? Yes 

Chrome version: 51.0.2704.84  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 21.0 r0

Note that in one case reducing the precision of the `viewBox` coordinates causes the bug to appear for one of the paths, but the third SVG has similar precision on the `viewBox` and still shows the aliasing.

Also note that the diagonal polylines in the test images all appear to be stroked correctly, so this may be triggered by a certain level of path complexity?
 
TurtleTest-ChromeProblem.png
15.5 KB View Download
Components: -Blink Blink>SVG
Labels: -OS-Windows OS-All
Owner: fmalita@chromium.org
Status: Assigned (was: Unconfirmed)
fmalita@, does this look like GPU vs. CPU to you? Either that or we are somehow rendering then scaling a texture, but that doesn't seem right given there's only 1 layer on the page.

Comment 3 by phrog...@gmail.com, Jul 27 2016

Ping

Sign in to add a comment