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

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

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <html style="font-size:10px">
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="../../fast/repaint/resources/repaint.js"></script>
4 <script> 4 <script>
5 window.testIsAsync = true; 5 window.testIsAsync = true;
6 window.onload = runRepaintAndPixelTest; 6 window.onload = runRepaintTest;
7 7
8 function repaintTest() { 8 function repaintTest() {
9 setTimeout(function() { 9 setTimeout(function() {
10 document.getElementById("rootdiv").style.fontSize="20px"; 10 document.getElementById("rootdiv").style.fontSize="20px";
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 <style> 18 <style>
19 @font-face { 19 @font-face {
20 font-family: Ahem; 20 font-family: Ahem;
21 src: url(../../resources/Ahem.ttf); 21 src: url(../../resources/Ahem.ttf);
22 } 22 }
23 </style> 23 </style>
24 <body> 24 <body>
25 <div id="rootdiv" style="font-size:10px; font-family:Ahem"> 25 <div id="rootdiv" style="font-size:10px; font-family:Ahem">
26 <svg style="width:10ch; height:10ch;"> 26 <svg style="width:10ch; height:10ch;">
27 <rect width="10ch" height="10ch" style="fill:rgb(0,0,255);" /> 27 <rect width="10ch" height="10ch" style="fill:rgb(0,0,255);" />
28 </svg> 28 </svg>
29 </div> 29 </div>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698