Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE HTML> | |
| 2 <style> | |
| 3 body { | |
| 4 margin: 0; | |
| 5 } | |
| 6 #test { | |
| 7 position: absolute; | |
| 8 background-color: green; | |
| 9 top: 0; | |
| 10 left: 0; | |
| 11 right: 0; | |
| 12 } | |
| 13 </style> | |
| 14 <script src="../../../resources/check-layout.js"></script> | |
| 15 <script> | |
| 16 | |
|
mstensho (USE GERRIT)
2015/02/02 10:00:47
Superfluous blank line.
| |
| 17 function runTest() | |
| 18 { | |
| 19 var test = document.getElementById('test'); | |
| 20 document.body.offsetTop; | |
| 21 test.style['bottom'] = '50%'; | |
|
mstensho (USE GERRIT)
2015/02/02 10:00:47
Any reason why you shouldn't just let it be '50%'
| |
| 22 document.body.offsetTop; | |
| 23 test.style['bottom'] = 'auto'; | |
| 24 window.checkLayout("#test"); | |
| 25 } | |
| 26 window.onload = runTest; | |
| 27 </script> | |
| 28 <div id="test" data-expected-height=0> | |
|
mstensho (USE GERRIT)
2015/02/02 10:00:47
Strange indentation.
Maybe you could also add a c
| |
| 29 </div> | |
| 30 Tests positioned movement layout when its height is changed by top/bottom changi ng from auto to fixed and back again. | |
|
mstensho (USE GERRIT)
2015/02/02 10:00:47
If you agree to make the change that I suggested a
| |
| OLD | NEW |