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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/inline-reflow.html

Issue 2560073002: Hopefully deflake some tests, by preloading the Ahem font. (Closed)
Patch Set: Created 4 years 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 <script src="../../resources/ahem.js"></script>
2 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/text-based-repaint.js"></script>
3 <script> 4 <script>
4 function repaintTest() 5 function repaintTest()
5 { 6 {
6 document.getElementById('div1').style.width = '300px'; 7 document.getElementById('div1').style.width = '300px';
7 document.getElementById('div2').style.width = '300px'; 8 document.getElementById('div2').style.width = '300px';
8 } 9 }
9 window.onload = runRepaintAndPixelTest; 10 window.onload = runRepaintAndPixelTest;
10 </script> 11 </script>
11 <style> 12 <style>
12 body { 13 body {
13 margin: 0; 14 margin: 0;
14 } 15 }
15 .container { 16 .container {
16 font: 20px Ahem; 17 font: 20px Ahem;
17 width: 200px; 18 width: 200px;
18 position: absolute; 19 position: absolute;
19 } 20 }
20 </style> 21 </style>
21 <div class="container" id="div1"> 22 <div class="container" id="div1">
22 A A A A A AA AA AA AA AAA AAA AAA AAAA AAAA AAAAA AAAAA AAAAAA AAAAAAA AAAAAA AA AAA AAAAA AAAA AAAA AAA AAA AAA AA AA AA AA A A A A A 23 A A A A A AA AA AA AA AAA AAA AAA AAAA AAAA AAAAA AAAAA AAAAAA AAAAAAA AAAAAA AA AAA AAAAA AAAA AAAA AAA AAA AAA AA AA AA AA A A A A A
23 </div> 24 </div>
24 <div class="container" id="div2" style="top: 300px"> 25 <div class="container" id="div2" style="top: 300px">
25 A A A A A 26 A A A A A
26 </div> 27 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698