Bug 143002 - On iOS, vector-effect="non-scaling-stroke" is not honored
Summary: On iOS, vector-effect="non-scaling-stroke" is not honored
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad iOS 8.2
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 03:04 PDT by Ben Frain
Modified: 2016-10-12 06:22 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Frain 2015-03-24 03:04:46 PDT
In SVG 1.2 there exists the vector-effect="non-scaling-stroke" attribute/value combination – http://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke

This seems to be honored in desktop Safari but not iOS (8.2 tested).

Reduction:

http://codepen.io/benfrain/pen/dPabrz

If you open this in desktop Safari and resize the window, you'll see the enclosed SVG elements do not get their path/stroke redrawn larger than the defined "2". On iOS however, they do.
Comment 1 Dirk Schulze 2016-10-12 06:22:28 PDT
This looks ok for me on iOS.