[Webkit-unassigned] [Bug 157567] New: outermost SVG currentScale should only scale SVG Element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 11 07:45:42 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157567

            Bug ID: 157567
           Summary: outermost SVG currentScale should only scale SVG
                    Element
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: Macintosh
                OS: OS X 10.11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: self at mathiasmenzel.de
                CC: zimmermann at kde.org

Created attachment 278625
  --> https://bugs.webkit.org/attachment.cgi?id=278625&action=review
opera scale

When setting the currentScale attribute on the outermost SVG inline Element in a web page, the whole web page is scaled, just as if cmd+ is pressed.
According to the SVG specs http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement, the following (last) step should be performed when setting currentScale (on the outermost SVG Element):

"Set the document's magnification and panning transform to [scale 0 0 scale e f]."

This clearly references the SVG document and not the web page document.
Actually Opera presumably does it right (Version 12.16 , Build 1860), allowing for Web pages with MDI style SVG Canvases.

btw: the currentTranslate (SVGPoint) is implemented correctly, this just translates the SVG document and keeps the html elements on the webpage untouched.

Example: With this markup:
----
<html><head>
  <meta charset="UTF-8">
  <title>SVG</title>
</head>
<body>
<h1>SVGCanvas</h1>
<div style="width: 600px; height: 400px; overflow: auto; border: 1px solid red;">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="600" height="400" viewBox="0 0 600 400" id="svg">
<rect id="r1" x="100" y="100" width="100" height="100" fill="green"></rect>
</svg>
</div>
</body>
</html>
----

go to console and do:
> document.getElementById('svg').currentScale = 2


BTW: The link in the bugzilla user's guide (https://bugs.webkit.org -> Bugzilla's Users Guide -> 5.6.1 Reporting a new Bug (https://landfill.bugzilla.org/bugzilla-3.2-branch/page.cgi?id=bug-writing.html)) is broken.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160511/4ea5c1a0/attachment.html>


More information about the webkit-unassigned mailing list