Closed
Bug 1093327
Opened 10 years ago
Closed 10 years ago
Incorrect orient="auto" behavior for SVG <polyline> and <polygon> markers
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: dtrebbien, Assigned: longsonr)
References
Details
(Keywords: regression)
Attachments
(3 files)
Test case: http://jsfiddle.net/agxewL2g/ In Firefox 33.0.2 on Mac OS 10.10 and Windows 8.1 Pro, as well as Firefox Nightly 36.0a1 (2014-11-03) on Mac, the auto-orientation of <polyline> start markers and <polygon> start & end markers is not correct. The specification of orient 'auto' has changed slightly between SVG 1.1 and the latest draft from October 10, 2014 of SVG 2: http://www.w3.org/TR/SVG11/painting.html#OrientAttribute https://svgwg.org/svg2-draft/painting.html#OrientAttribute However, Firefox' behavior is incorrect according to either wording. If I have done my math right, here is an updated JSFiddle showing the tangent vectors and angle bisector for the two <polygon>s: http://jsfiddle.net/agxewL2g/1/ According to SVG 1.1, the X axis of the arrow head marker should be aligned with the light red angle bisector vectors. Results for other browsers: - IE9 and IE11 correctly implement the wording of SVG 1.1 - Safari 8.0 has no problem with the <polyline> markers. For <polygon>, Safari appears to be implementing the SVG 2 wording; however, Safari is doing something weird with the end marker. - Chrome 38.0.2125.111 / Blink 537.36 (@183466) also has no problem with the <polyline> markers. For <polygon>, Chrome appears to be implementing the SVG 2 wording; however, Chrome aligns the end marker X axis with the direction out of the initial/final vertex when it should align the end marker "in the direction of the path", which would be the direction into the vertex, I think.
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Reporter | ||
Comment 3•10 years ago
|
||
Opera 10.63, 11.11, 11.51, 11.62, 12.10, and 12.16 correctly implement the wording of SVG 1.1.
Assignee | ||
Comment 4•10 years ago
|
||
Daniel, have you tried older versions of Firefox? Did this work in some previous version? If so would you be willing to use http://mozilla.github.io/mozregression/ to find out when things broke?
Reporter | ||
Comment 5•10 years ago
|
||
Hi Robert, Using BrowserStack, I found that Firefox 4 through 24 correctly implement the wording of SVG 1.1, like IE and Opera (Presto). Things broke in Firefox 25. Sure, I can use mozregression. I will let you know what I find...
Reporter | ||
Comment 6•10 years ago
|
||
Last good revision: b44898282f21 (2013-07-12) First bad revision: 32c3ccd8946c (2013-07-13) Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b44898282f21&tochange=32c3ccd8946c Maybe the regression was introduced by the patches for Bug 879659?
Keywords: regression
Version: Trunk → 25 Branch
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → longsonr
Assignee | ||
Comment 7•10 years ago
|
||
Thanks for the testcase and regression range. Very helpful.
Attachment #8517371 -
Flags: review?(cam)
Updated•10 years ago
|
Attachment #8517371 -
Flags: review?(cam) → review+
Assignee | ||
Comment 8•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=69a9d71cdd90
Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/96c0b7cb6e93
Assignee | ||
Updated•10 years ago
|
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/96c0b7cb6e93
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•