Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <title>This test should not have a horizontal scrollbar</title> | |
|
mstensho (USE GERRIT)
2016/03/17 19:57:06
I think we usually put the pass condition as reada
| |
| 3 <html> | |
|
mstensho (USE GERRIT)
2016/03/17 19:57:06
Wrong order. HTML should contain TITLE.
But bette
| |
| 4 | |
| 5 <style> | |
| 6 body { | |
| 7 width: 400px; | |
| 8 height: 300px; | |
| 9 } | |
| 10 | |
| 11 .flexbox { | |
| 12 display: flex; | |
| 13 } | |
| 14 | |
| 15 .column { | |
| 16 flex-direction: column; | |
| 17 } | |
| 18 | |
| 19 .flex11a { | |
| 20 flex: 1 1 auto; | |
| 21 } | |
| 22 | |
| 23 .root { | |
| 24 height: 100px; | |
| 25 overflow-y: auto; | |
| 26 } | |
| 27 </style> | |
| 28 </head> | |
| 29 <body class="flexbox column"> | |
| 30 | |
| 31 <div class="flexbox"> | |
| 32 <div class="flex11a"> | |
| 33 <div id="root" class="root"> | |
| 34 <div id="history"></div> | |
| 35 </div> | |
| 36 </div> | |
| 37 </div> | |
| 38 | |
| 39 <script> | |
| 40 onload = function() { | |
| 41 var historyEl = document.getElementById('history'); | |
| 42 historyEl.offsetWidth; | |
| 43 historyEl.innerText = '\n\n\n\n\n\n\n\n'; | |
| 44 }; | |
| 45 </script> | |
| 46 | |
| 47 </body> | |
| 48 </html> | |
| OLD | NEW |