Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
SVG.currentScale should only set page zoom for standalone SVG
https://bugs.webkit.org/show_bug.cgi?id=245520 Reviewed by Nikolas Zimmermann. SVG.currentScale should only set page zoom for standalone SVG. * Source/WebCore/svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::frameForCurrentScale const): Canonical link: https://commits.webkit.org/254787@main
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg"> | ||
<rect width="100" height="100" fill="green"/> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype HTML> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Testcase for changing currentScale on SVG embedded in HTML</title> | ||
<link rel="help" href="https://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__currentScale"> | ||
<link rel="match" href="reference/green-100x100.svg"/> | ||
<script> | ||
function go() { | ||
var mySVG = document.getElementById("mySVG"); | ||
mySVG.currentScale = 0.5; | ||
} | ||
</script> | ||
</head> | ||
<body onload="go()"> | ||
<svg id="mySVG"> | ||
<rect width="100" height="100" fill="green"></rect> | ||
</svg> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters