Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/object-current-scale.html

Issue 1827793003: Support currentScale for embedded SVG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore pageZoomFactor modification Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <script>
4 if (window.testRunner)
5 testRunner.waitUntilDone();
6
7 function setScale() {
8 var obj = document.querySelector("object");
9 var svgdoc = obj.contentDocument;
10 var svgroot = svgdoc.documentElement;
11 svgroot.currentScale = 0.5;
12 runAfterLayoutAndPaint(function() {
13 if (window.testRunner)
fs 2016/03/31 10:53:04 You can pass 'true' as the second argument to runA
Shanmuga Pandi 2016/03/31 11:53:35 Done.
14 testRunner.notifyDone();
15 });
16 }
17 </script>
18
19 <body>
fs 2016/03/31 10:53:04 You don't need this <body>.
Shanmuga Pandi 2016/03/31 11:53:35 Done.
20 <object onload="setScale()" data="resources/green-rect.svg" type="image/svg+ xml">
21 </object>
22 <svg width='400' height='400' viewBox='0 0 200 200'>
fs 2016/03/31 10:53:04 This is a pretty roundabout way to get a 100x100 r
Shanmuga Pandi 2016/03/31 11:53:35 Acknowledged.
23 <rect width='50' height='50' fill='green'/>
24 </svg>
25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698