| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
| 6 body { | 6 body { |
| 7 height: 1000px; | 7 height: 1000px; |
| 8 margin: 0; | 8 margin: 0; |
| 9 } | 9 } |
| 10 #test { | 10 #test { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 </style> | 23 </style> |
| 24 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 24 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
| 25 <script type="text/javascript"> | 25 <script type="text/javascript"> |
| 26 function repaintTest() | 26 function repaintTest() |
| 27 { | 27 { |
| 28 document.getElementById('test').style.background='green'; | 28 document.getElementById('test').style.background='green'; |
| 29 } | 29 } |
| 30 | 30 |
| 31 function setupTest() { | 31 function setupTest() { |
| 32 window.scrollBy(0, 50); | 32 window.scrollBy(0, 50); |
| 33 runRepaintTest(); | 33 runRepaintAndPixelTest(); |
| 34 }; | 34 }; |
| 35 window.addEventListener('load', setupTest, false); | 35 window.addEventListener('load', setupTest, false); |
| 36 </script> | 36 </script> |
| 37 </head> | 37 </head> |
| 38 <body> | 38 <body> |
| 39 | 39 |
| 40 <!-- | 40 <!-- |
| 41 https://bugs.webkit.org/show_bug.cgi?id=36686 | 41 https://bugs.webkit.org/show_bug.cgi?id=36686 |
| 42 Test repainting of a fixed-position element with a transform. | 42 Test repainting of a fixed-position element with a transform. |
| 43 The box should be entirely green. | 43 The box should be entirely green. |
| 44 --> | 44 --> |
| 45 <div id="test"></div> | 45 <div id="test"></div> |
| 46 | 46 |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |