| 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 { |
| 11 width: 100px; | 11 width: 100px; |
| 12 height: 100px; | 12 height: 100px; |
| 13 background-color: red; | 13 background-color: red; |
| 14 position: fixed; | 14 position: fixed; |
| 15 top: 10px; | 15 top: 10px; |
| 16 left: 10px; | 16 left: 10px; |
| 17 -webkit-transform: translate(50px, 50px); | 17 -webkit-transform: translate(50px, 50px); |
| 18 } | 18 } |
| 19 | 19 |
| 20 .box:hover { | 20 .box:hover { |
| 21 background-color: green; | 21 background-color: green; |
| 22 } | 22 } |
| 23 </style> | 23 </style> |
| 24 <script src="../../resources/run-after-display.js"></script> |
| 24 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 25 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
| 25 <script type="text/javascript"> | 26 <script type="text/javascript"> |
| 26 function repaintTest() | 27 if (window.testRunner) |
| 27 { | 28 testRunner.waitUntilDone(); |
| 29 |
| 30 function repaintTest() |
| 31 { |
| 28 document.getElementById('test').style.background='green'; | 32 document.getElementById('test').style.background='green'; |
| 29 } | 33 } |
| 30 | 34 |
| 31 function setupTest() | 35 function setupTest() |
| 32 { | 36 { |
| 33 window.scrollBy(0, 50); | 37 window.scrollBy(0, 50); |
| 34 runRepaintTest(); | 38 runAfterDisplay(function() { |
| 35 } | 39 runRepaintTest(); |
| 36 window.addEventListener('load', setupTest, false); | 40 if (window.testRunner) |
| 41 testRunner.notifyDone(); |
| 42 }); |
| 43 } |
| 44 window.addEventListener('load', setupTest, false); |
| 37 </script> | 45 </script> |
| 38 </head> | 46 </head> |
| 39 <body> | 47 <body> |
| 40 | 48 |
| 41 <!-- | 49 <!-- |
| 42 https://bugs.webkit.org/show_bug.cgi?id=36686 | 50 https://bugs.webkit.org/show_bug.cgi?id=36686 |
| 43 Test repainting of a fixed-position element with a transform. | 51 Test repainting of a fixed-position element with a transform. |
| 44 The box should be entirely green. | 52 The box should be entirely green. |
| 45 --> | 53 --> |
| 46 <div id="test"></div> | 54 <div id="test"></div> |
| 47 | 55 |
| 48 </body> | 56 </body> |
| 49 </html> | 57 </html> |
| OLD | NEW |