Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <style> | |
| 4 body { | |
| 5 width: 400px; | |
| 6 height: 300px; | |
| 7 } | |
| 8 | |
| 9 .flexbox { | |
| 10 display: flex; | |
| 11 } | |
| 12 | |
| 13 .column { | |
| 14 flex-direction: column; | |
| 15 } | |
| 16 | |
| 17 .flex11a { | |
| 18 flex: 1 1 auto; | |
| 19 } | |
| 20 | |
| 21 .root { | |
| 22 height: 100px; | |
| 23 overflow-y: auto; | |
| 24 position: relative; | |
| 25 } | |
| 26 | |
| 27 #abspos { | |
| 28 position: absolute; | |
| 29 left: 0; | |
| 30 right: 0; | |
| 31 top: 0; | |
| 32 height: 10px; | |
| 33 } | |
| 34 </style> | |
| 35 | |
| 36 | |
| 37 <p>This test should not have a horizontal scrollbar</p> | |
| 38 | |
| 39 <div class="flexbox column"> | |
| 40 <div class="flexbox"> | |
| 41 <div class="flex11a"> | |
| 42 <div class="root"> | |
| 43 <div> | |
| 44 <div> | |
| 45 <div id="history"></div> | |
| 46 <div id="abspos"></div> | |
| 47 </div> | |
| 48 </div> | |
| 49 </div> | |
| 50 </div> | |
| 51 </div> | |
| 52 </div> | |
| 53 | |
| 54 <script> | |
| 55 onload = function() { | |
| 56 var historyEl = document.getElementById('history'); | |
| 57 historyEl.offsetWidth; | |
| 58 historyEl.innerText = '\n\n\n\n\n\n\n\n'; | |
| 59 }; | |
| 60 </script> | |
| OLD | NEW |