| OLD | NEW |
| 1 <!-- Based on fast/repaint/fixed-tranformed.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 | 3 |
| 3 <html> | 4 <html> |
| 4 <head> | 5 <head> |
| 5 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
| 6 body { | 7 body { |
| 7 height: 1000px; | 8 height: 1000px; |
| 8 margin: 0; | 9 margin: 0; |
| 9 } | 10 } |
| 10 #test { | 11 #test { |
| 11 width: 100px; | 12 width: 100px; |
| 12 height: 100px; | 13 height: 100px; |
| 13 background-color: red; | 14 background-color: red; |
| 14 position: fixed; | 15 position: fixed; |
| 15 top: 10px; | 16 top: 10px; |
| 16 left: 10px; | 17 left: 10px; |
| 17 transform: translate(50px, 50px); | 18 transform: translate(50px, 50px); |
| 18 } | 19 } |
| 19 | 20 |
| 20 .box:hover { | 21 .box:hover { |
| 21 background-color: green; | 22 background-color: green; |
| 22 } | 23 } |
| 23 </style> | 24 </style> |
| 24 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 25 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
| 25 <script type="text/javascript"> | 26 <script type="text/javascript"> |
| 26 function repaintTest() | 27 window.expectedPaintInvalidationObjects = [ |
| 28 "LayoutBlockFlow (positioned) DIV id='test'", |
| 29 ]; |
| 30 function paintInvalidationTest() |
| 27 { | 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 window.scrollBy(0, 50); | 36 window.scrollBy(0, 50); |
| 33 runRepaintTest(); | 37 runPaintInvalidationTest(); |
| 34 }; | 38 }; |
| 35 window.addEventListener('load', setupTest, false); | 39 window.addEventListener('load', setupTest, false); |
| 36 </script> | 40 </script> |
| 37 </head> | 41 </head> |
| 38 <body> | 42 <body> |
| 39 | 43 |
| 40 <!-- | 44 <!-- |
| 41 https://bugs.webkit.org/show_bug.cgi?id=36686 | 45 https://bugs.webkit.org/show_bug.cgi?id=36686 |
| 42 Test repainting of a fixed-position element with a transform. | 46 Test repainting of a fixed-position element with a transform. |
| 43 The box should be entirely green. | 47 The box should be entirely green. |
| 44 --> | 48 --> |
| 45 <div id="test"></div> | 49 <div id="test"></div> |
| 46 | 50 |
| 47 </body> | 51 </body> |
| 48 </html> | 52 </html> |
| OLD | NEW |