Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text-autosizing / text-removal.html
blob2efd234a8332621afaf167729f126dbfa9bdfdeb
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;
10 body {
11 width: 800px;
12 margin: 0;
13 overflow-y: hidden;
15 </style>
16 <span id="span1">
17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
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');
27 span1.removeChild(span1.firstChild);
28 var forceLayout2 = document.body.offsetTop;
30 shouldBeEqualToString("window.getComputedStyle(span1).lineHeight", "16px");
31 shouldBeEqualToString("window.getComputedStyle(span2).lineHeight", "16px");
32 </script>