Bug 77803 - SVG Tiny: 'non-scaling-stroke' incorrectly implemented in 'path' element
Summary: SVG Tiny: 'non-scaling-stroke' incorrectly implemented in 'path' element
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 20:42 PST by lotta.boogs
Modified: 2022-07-14 14:33 PDT (History)
7 users (show)

See Also:


Attachments
svg file to test 'non-scaling-stroke' in rect and path elements (1.26 KB, image/svg+xml)
2012-02-08 02:42 PST, lotta.boogs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description lotta.boogs 2012-02-03 20:42:18 PST
Setting 'vector-effect' property to 'non-scaling-stroke' in 'path' element does nothing unless 'stroke-width' is set to zero, this produces a 1 pixel wide stroke.  No other width is available.

This does not comply with the SVG standard, see-
http://www.w3.org/TR/SVGTiny12/painting.html#StrokeWidthProperty
and
http://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke

The version affected is that installed in the latest releases of Chrome and Qt.
Comment 1 Dirk Schulze 2012-02-04 21:05:09 PST
(In reply to comment #0)
> Setting 'vector-effect' property to 'non-scaling-stroke' in 'path' element does nothing unless 'stroke-width' is set to zero, this produces a 1 pixel wide stroke.  No other width is available.

We have test cases for non-scaling-stroke which don't fail. But IIRC they just use rects as shapes. Can you test it with rects again and check if your test is working for rects? Also it would be great if you can provide a minimal test case that demonstrates the problem. Thanks.
Comment 2 lotta.boogs 2012-02-08 02:42:35 PST
Created attachment 126038 [details]
svg file to test 'non-scaling-stroke' in rect and path elements

Further testing has revealed that the problem is restricted to the Qt implementation of WebKit, it does not recognise the 'non-scaling-stroke' value of vector-effects unless the stroke-width is set to zero.
Chrome displays a 1 pixel line when the stroke-width is zero, which not what is recommended by the SVG standard.
I have included a testcase.
Comment 3 Ahmad Saleem 2022-07-14 14:16:51 PDT
Comment 02 mentions that this bug was limited to Qt framework implementation of Webkit, which is no longer supported and all browser (Chrome Canary 105 and Firefox Nightly 104) matches with Safari 15.5 in attached test case. I think this can be marked as "RESOLVED INVALID" or "RESOLVED WONTFIX". In case, if I am testing incorrectly, please retest accordingly. Thanks!