OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta name="viewport" content="width=800"> |
| 3 <script src="../../resources/js-test.js"></script> |
| 4 <script src="resources/autosizingTest.js"></script> |
| 5 <style> |
| 6 html { |
| 7 font-size: 16px; |
| 8 line-height: 16px; |
| 9 } |
| 10 body { |
| 11 width: 800px; |
| 12 margin: 0; |
| 13 overflow-y: hidden; |
| 14 } |
| 15 </style> |
| 16 <span id="span1"> |
| 17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempo
r |
| 18 incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis |
| 19 nostrud exercitation ullamco laboris nisiut aliquip ex ea commodo consequat. |
| 20 </span> |
| 21 <span id="span2"></span> |
| 22 <script> |
| 23 var forceLayout1 = document.body.offsetTop; |
| 24 var span1 = document.getElementById('span1'); |
| 25 var span2 = document.getElementById('span2'); |
| 26 |
| 27 span1.removeChild(span1.firstChild); |
| 28 var forceLayout2 = document.body.offsetTop; |
| 29 |
| 30 shouldBeEqualToString("window.getComputedStyle(span1).lineHeight", "16px"); |
| 31 shouldBeEqualToString("window.getComputedStyle(span2).lineHeight", "16px"); |
| 32 </script> |
OLD | NEW |