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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 11 11:52:54 PDT 2016


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

Said Abou-Hallawa <sabouhallawa at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sabouhallawa at apple.com

--- Comment #2 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
I do not think we need to fix this because the behavior of currentScale is undefined when we're dealing with non-standalone SVG documents. Since there is no specs for currentScale with embedded SVG, browsers handle it differently:

1. Safari and Chrome: the scaling is handled by the host renderer.
2. FireFox: the scaling is compelety ignored.
3. Opera: the scale is handled as applying viewBox scaling.

I attached two test cases for changing currentScale with standalone and embedded SVG. The embedded case behaves differently but the standalone behaves the same in all browsers.

There is nicer and easier way to replace currentScale with embedded SVG. Using viewBox on the outer SVG element will do exactly the same as setting the currentScale. 

For example, the following SVG will be scaled 200%.

   <svg width="600" height="400" viewBox="0 0 300 200">

I attached also another test case which uses viewBox scaling and which behaves in WebKit exactly as currentScale behaves in Opera.

-- 
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/25fe7c35/attachment.html>


More information about the webkit-unassigned mailing list