OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 .box { | 6 .box { |
7 margin: 10px; | 7 margin: 10px; |
8 height: 50px; | 8 height: 50px; |
9 width: 50px; | 9 width: 50px; |
10 background-color: green; | 10 background-color: green; |
11 } | 11 } |
12 | 12 |
13 .before { | 13 .before { |
14 background-color: red; | 14 background-color: red; |
15 } | 15 } |
16 | 16 |
17 .sepia { | 17 .sepia { |
18 margin: 50px; | 18 margin: 50px; |
19 -webkit-filter: sepia(); | 19 -webkit-filter: sepia(); |
20 } | 20 } |
21 </style> | 21 </style> |
22 | 22 |
23 <script src="../../fast/repaint/resources/repaint.js"></script> | 23 <script src="../../fast/repaint/resources/repaint.js"></script> |
24 <script> | 24 <script> |
25 if (window.testRunner) | 25 if (window.testRunner) |
26 testRunner.dumpAsText(true); | 26 testRunner.dumpAsTextWithPixelResults(); |
27 | 27 |
28 function repaintTest() | 28 function repaintTest() |
29 { | 29 { |
30 document.querySelector(".before").classList.remove("before"); | 30 document.querySelector(".before").classList.remove("before"); |
31 } | 31 } |
32 </script> | 32 </script> |
33 </head> | 33 </head> |
34 | 34 |
35 <body onload="runRepaintTest()"> | 35 <body onload="runRepaintTest()"> |
36 | 36 |
37 <div class="sepia"> | 37 <div class="sepia"> |
38 <div class="box"></div> | 38 <div class="box"></div> |
39 <div class="box before"></div> | 39 <div class="box before"></div> |
40 <div class="box"></div> | 40 <div class="box"></div> |
41 </div> | 41 </div> |
42 | 42 |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |