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