Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Side by Side Diff: LayoutTests/fast/text-autosizing/text-removal.html

Issue 319013003: Set multiplier to 1 on blocks with no direct text children. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698