OLD | NEW |
1 <!-- Based on compositing/repaint/fixed-pos-inside-composited-intermediate-layer
.html --> | 1 <!-- Based on compositing/repaint/fixed-pos-inside-composited-intermediate-layer
.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <html> | 3 <html> |
4 | 4 |
5 <head> | 5 <head> |
6 <script src="resources/paint-invalidation-test.js"></script> | 6 <script src="resources/paint-invalidation-test.js"></script> |
7 <style> | 7 <style> |
8 | 8 |
9 .compositedBehind { | 9 .compositedBehind { |
10 width: 500px; | 10 width: 500px; |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 </style> | 35 </style> |
36 | 36 |
37 <script> | 37 <script> |
38 if (window.internals) { | 38 if (window.internals) { |
39 /* Note carefully, compositing for fixed position is _disabled_ here
*/ | 39 /* Note carefully, compositing for fixed position is _disabled_ here
*/ |
40 internals.settings.setPreferCompositingToLCDTextEnabled(false); | 40 internals.settings.setPreferCompositingToLCDTextEnabled(false); |
41 } | 41 } |
42 | 42 |
43 window.expectedPaintInvalidationObjects = [ | |
44 "LayoutBlockFlow (positioned) DIV class='fixed'", | |
45 ]; | |
46 function paintInvalidationTest() { | 43 function paintInvalidationTest() { |
47 window.scrollTo(0, 100); | 44 window.scrollTo(0, 100); |
48 } | 45 } |
49 </script> | 46 </script> |
50 | 47 |
51 </head> | 48 </head> |
52 | 49 |
53 | 50 |
54 | 51 |
55 <body onload="runPaintInvalidationTest()"> | 52 <body onload="runPaintInvalidationTest()"> |
56 <!-- | 53 <!-- |
57 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det
ail?id=128375 | 54 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det
ail?id=128375 |
58 A non-composited fixed-position element can get grouped into a composited
container. | 55 A non-composited fixed-position element can get grouped into a composited
container. |
59 In this case, repaint invalidations were incorrectly going to the LayoutV
iew instead | 56 In this case, repaint invalidations were incorrectly going to the LayoutV
iew instead |
60 of the composited container. The incorrect result was that the fixed-pos
ition element | 57 of the composited container. The incorrect result was that the fixed-pos
ition element |
61 never repainted, and it appeared to scroll along with the composited cont
ainer. | 58 never repainted, and it appeared to scroll along with the composited cont
ainer. |
62 --> | 59 --> |
63 <div class="compositedBehind"> </div> | 60 <div class="compositedBehind"> </div> |
64 | 61 |
65 <div class="containerOverlapsComposited"> | 62 <div class="containerOverlapsComposited"> |
66 <div class="fixed"></div> | 63 <div class="fixed"></div> |
67 </div> | 64 </div> |
68 </body> | 65 </body> |
69 | 66 |
70 </html> | 67 </html> |
OLD | NEW |