Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 .fixed { | 3 .fixed { |
| 4 position: fixed; | 4 position: fixed; |
| 5 } | 5 } |
| 6 .overflow { | 6 .overflow { |
| 7 width: 100%; | 7 width: 100%; |
| 8 height: 100%; | 8 height: 100%; |
| 9 overflow-y: scroll; | 9 overflow-y: scroll; |
| 10 } | 10 } |
| 11 .yellow { | 11 .yellow { |
| 12 left: 200px; | 12 left: 200px; |
| 13 width: 100px; | 13 width: 100px; |
| 14 height: 100px; | 14 height: 100px; |
| 15 background-color: yellow; | 15 background-color: yellow; |
| 16 } | 16 } |
| 17 | 17 |
| 18 .blue { | 18 .blue { |
| 19 width: 100px; | 19 width: 100px; |
| 20 height: 1000px; | 20 height: 1000px; |
| 21 background-color: blue; | 21 background-color: blue; |
|
flackr
2016/08/03 20:00:01
Should background color still be here? The image w
Stephen Chennney
2016/08/03 20:21:15
Yes, it will cover it up, but we only use backgrou
flackr
2016/08/03 20:34:14
Perhaps I am missing something. .blue is not a scr
Stephen Chennney
2016/08/03 20:44:26
.blue is a scroller if the window size is less tha
| |
| 22 background-image: linear-gradient(to bottom,red,orange,yellow, green, blue,ind igo,violet); | |
| 22 } | 23 } |
| 23 </style> | 24 </style> |
| 24 <div class="overflow fixed"> | 25 <div class="overflow fixed"> |
| 25 <div class="yellow fixed"></div> | 26 <div class="yellow fixed"></div> |
| 26 <div class="blue"></div> | 27 <div class="blue"></div> |
| 27 </div> | 28 </div> |
| 28 <pre></pre> | 29 <pre></pre> |
| 29 <script src="../../resources/run-after-layout-and-paint.js"></script> | 30 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 30 <script> | 31 <script> |
| 31 if (window.testRunner && window.internals) { | 32 if (window.testRunner && window.internals) { |
| 32 testRunner.dumpAsText(); | 33 testRunner.dumpAsText(); |
| 33 testRunner.waitUntilDone(); | 34 testRunner.waitUntilDone(); |
| 34 internals.settings.setPreferCompositingToLCDTextEnabled(true); | 35 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 35 } | 36 } |
| 36 | 37 |
| 37 runAfterLayoutAndPaint(function() { | 38 runAfterLayoutAndPaint(function() { |
| 38 if (window.testRunner) | 39 if (window.testRunner) |
| 39 document.querySelector('pre').textContent = window.internals.layerTreeAsText (document); | 40 document.querySelector('pre').textContent = window.internals.layerTreeAsText (document); |
| 40 }, true); | 41 }, true); |
| 41 </script> | 42 </script> |
| OLD | NEW |