OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test for repaint on layout of flexbox</title> | 4 <title>Test for repaint on layout of flexbox</title> |
5 <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/
javascript"></script> | 5 <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/
javascript"></script> |
6 <script> | 6 <script> |
7 function repaintTest() | 7 function repaintTest() |
8 { | 8 { |
9 if (window.testRunner) | 9 if (window.testRunner) |
10 document.getElementById('badge').style.display = "none"; | 10 document.getElementById('badge').style.display = "none"; |
(...skipping 27 matching lines...) Expand all Loading... |
38 display: inline-block; | 38 display: inline-block; |
39 height: 20px; | 39 height: 20px; |
40 width: 80px; | 40 width: 80px; |
41 } | 41 } |
42 | 42 |
43 .item:hover #badge { | 43 .item:hover #badge { |
44 display: none; | 44 display: none; |
45 } | 45 } |
46 </style> | 46 </style> |
47 </head> | 47 </head> |
48 <body onload="runRepaintTest()"> | 48 <body onload="runRepaintAndPixelTest()"> |
49 <nav class="nav-bar"> | 49 <nav class="nav-bar"> |
50 <div class="nav-right"></div> | 50 <div class="nav-right"></div> |
51 </nav> | 51 </nav> |
52 <div class="item"> | 52 <div class="item"> |
53 <div class="state"> | 53 <div class="state"> |
54 <div id="badge"></div> | 54 <div id="badge"></div> |
55 </div> | 55 </div> |
56 </div> | 56 </div> |
57 </body> | 57 </body> |
58 </html> | 58 </html> |
59 | 59 |
OLD | NEW |