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

Side by Side Diff: LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html

Issue 1031223003: SVG doesn't recognize rem units (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes builderror Created 5 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
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html style="font-size:10px">
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script> 4 <script>
4 window.testIsAsync = true; 5 window.testIsAsync = true;
5 window.onload = runRepaintTest; 6 window.onload = runRepaintAndPixelTest;
6 7
7 function repaintTest() { 8 function repaintTest() {
8 var svg = document.querySelector('svg');
9 setTimeout(function() { 9 setTimeout(function() {
10 svg.style.backgroundColor = "green"; 10 document.getElementsByTagName("html")[0].style.fontSize="5px";
11 requestAnimationFrame(function() { 11 requestAnimationFrame(function() {
12 if (window.testRunner) 12 if (window.testRunner)
13 finishRepaintTest(); 13 finishRepaintTest();
14 }); 14 });
15 }, 0); 15 }, 0);
16 }; 16 };
17 </script> 17 </script>
18 <svg width="200px" height="100px" viewBox="0 0 100 100" 18 <body>
19 style="background-color: red"> 19 <div style="font-size:10px">
20 <svg style="width:20rem; height:20rem;">
21 <rect width="20rem" height="20em" style="fill:rgb(0,0,255);" />
20 </svg> 22 </svg>
23 </div>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698