[Webkit-unassigned] [Bug 141725] New: SVG root viewBox transformation is not set correctly if the attribute 'viewBox' is omitted but the 'width' and 'height' are included.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 17 14:29:57 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=141725
Bug ID: 141725
Summary: SVG root viewBox transformation is not set correctly
if the attribute 'viewBox' is omitted but the 'width'
and 'height' are included.
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sabouhallawa at apple.com
CC: zimmermann at kde.org
Created attachment 246767
--> https://bugs.webkit.org/attachment.cgi?id=246767&action=review
Test case -- SVG root viewBox is omitted
Open the first test case in WebKit.
Results: The arrow shape is not scaled to fit in the SVG root css rectangle.
Expected: The arrow should fit in the SVG root css rectangle.
The svg root size = (50, 50) in SVG coordinates
And it is also = (32, 32) in css coordinates
So the svg root viewBox transformation = "scale(32/50, 32/50)"
The bug happens because the transformation in this case = the identity since the 'viewBox' attribute is omitted in the SVG root.
If the 'viewBox' attribute is included in the svg root, the bug does not happen. (see the second test case)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150217/ab6ef131/attachment-0002.html>
More information about the webkit-unassigned
mailing list