OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 height: 2000px; | 6 height: 2000px; |
7 margin: 0px; | 7 margin: 0px; |
8 padding: 0px; | 8 padding: 0px; |
9 } | 9 } |
10 .main { | 10 .main { |
11 position: fixed; | 11 position: fixed; |
12 } | 12 } |
13 .fixed { | 13 .fixed { |
14 position: fixed; | 14 position: fixed; |
15 width: 100%; | 15 width: 100%; |
16 height: 100px; | 16 height: 100px; |
17 left: 0px; | 17 left: 0px; |
18 bottom: -100px; | 18 bottom: -100px; |
19 background-color: red; | 19 background-color: red; |
20 } | 20 } |
21 </style> | 21 </style> |
22 </head> | 22 </head> |
23 | 23 |
24 <body> | 24 <body> |
25 <div class="main"> | 25 <div class="main"> |
26 This test is applicable on platforms that do accelerated compositing, can pr
epaint out-of-view contents and can scroll the contents into the viewport withou
t repainting them.<p> | 26 This test is applicable on platforms that do accelerated compositing, can pr
epaint out-of-view contents and can scroll the contents into the viewport withou
t repainting them.<p> |
27 The following settings need to be enabled:<p> | 27 The following settings need to be enabled:<p> |
28 - acceleratedCompositingForFixedPositionEnabled<br> | 28 - preferCompositingToLCDTextEnabled<br> |
29 - fixedPositionCreatesStackingContext<p> | 29 - fixedPositionCreatesStackingContext<p> |
30 To test, scroll the page up and down. The test passes if there is no tempora
ry or permanent red in the page. | 30 To test, scroll the page up and down. The test passes if there is no tempora
ry or permanent red in the page. |
31 </div> | 31 </div> |
32 | 32 |
33 <!-- An out-of-view fixed element that should be never visible --> | 33 <!-- An out-of-view fixed element that should be never visible --> |
34 <div class="fixed"></div> | 34 <div class="fixed"></div> |
35 </body> | 35 </body> |
36 </html> | 36 </html> |
37 | 37 |
OLD | NEW |