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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/inline-outline-repaint-2.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 <style> 4 <style>
4 body { 5 body {
5 margin: 0; 6 margin: 0;
6 padding: 0; 7 padding: 0;
7 } 8 }
8 #container { 9 #container {
9 position: absolute; 10 position: absolute;
10 width: 255px; 11 width: 255px;
11 text-align: right; 12 text-align: right;
12 font: 10px Ahem; 13 font: 10px Ahem;
13 } 14 }
14 #container > span { 15 #container > span {
15 outline: 5px solid blue; 16 outline: 5px solid blue;
16 } 17 }
17 </style> 18 </style>
18 <div id=container> 19 <div id=container>
19 <span>Test</span> 20 <span>Test</span>
20 </div> 21 </div>
21 <script> 22 <script>
22 function repaintTest() { 23 function repaintTest() {
23 document.getElementById('container').style.color = 'green'; 24 document.getElementById('container').style.color = 'green';
24 } 25 }
25 onload = runRepaintAndPixelTest; 26 onload = runRepaintAndPixelTest;
26 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698