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 right: 0; |
| 11 bottom: 0; |
| 12 -webkit-writing-mode:vertical-rl; |
| 13 } |
| 14 </style> |
| 15 <script src="../../../resources/check-layout.js"></script> |
| 16 <script> |
| 17 function runTest() |
| 18 { |
| 19 var test = document.getElementById('test'); |
| 20 document.body.offsetTop; |
| 21 test.style['left'] = '50%'; |
| 22 document.body.offsetTop; |
| 23 test.style['left'] = 'auto'; |
| 24 window.checkLayout("#test"); |
| 25 } |
| 26 window.onload = runTest; |
| 27 </script> |
| 28 Tests positioned movement layout when its height is changed by top/bottom changi
ng from auto to fixed and back again. |
| 29 <div id="test" data-expected-width=0></div> |
OLD | NEW |