OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html lang="en"> | 2 <html lang="en"> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
5 <title>Composited scrolling paint phases</title> | 5 <title>Composited scrolling paint phases</title> |
6 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
7 .container { | 7 .container { |
8 width: 200px; | 8 width: 200px; |
9 height: 200px; | 9 height: 200px; |
10 overflow: scroll; | 10 overflow: scroll; |
11 margin: 20px; | 11 margin: 20px; |
12 border: 1px solid black; | 12 border: 1px solid black; |
13 } | 13 } |
14 | 14 |
15 .composited { | 15 .composited { |
16 width: 80px; | 16 width: 80px; |
17 height: 10px; | 17 height: 10px; |
18 position: relative; | 18 position: relative; |
19 top: 10px; | 19 top: 10px; |
20 -webkit-transform: translateZ(0); | 20 transform: translateZ(0); |
21 background-color: green; | 21 background-color: green; |
22 z-index: -1; | 22 z-index: -1; |
23 } | 23 } |
24 | 24 |
25 .not-composited { | 25 .not-composited { |
26 width: 80px; | 26 width: 80px; |
27 height: 20px; | 27 height: 20px; |
28 margin: 5px; | 28 margin: 5px; |
29 background-color: blue; | 29 background-color: blue; |
30 } | 30 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 <div class="not-composited"></div> | 85 <div class="not-composited"></div> |
86 <div class="not-composited"></div> | 86 <div class="not-composited"></div> |
87 <div class="not-composited"></div> | 87 <div class="not-composited"></div> |
88 <div class="not-composited"></div> | 88 <div class="not-composited"></div> |
89 <div class="not-composited"></div> | 89 <div class="not-composited"></div> |
90 </div> | 90 </div> |
91 <pre id="console"></pre> | 91 <pre id="console"></pre> |
92 </body> | 92 </body> |
93 </html> | 93 </html> |
94 | 94 |
OLD | NEW |