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

Side by Side Diff: LayoutTests/fast/text-autosizing/display-type-change.html

Issue 319283002: [FastTextAutosizer] Inherit the text autosizing multiplier (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove non-critical changes 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta name="viewport" content="width=800">
3 <script src="resources/autosizingTest.js"></script>
4 <style>
5 html {
6 font-size: 16px;
7 }
8 body {
9 width: 800px;
10 margin: 0;
11 overflow-y: hidden;
12 }
13 #inlineToBlock {
14 display: inline;
15 width: 200px;
16 line-height: 30px;
17 font-size: 30px;
18 }
19 </style>
20 <span id="inlineToBlock">
21 <div>
22 This test verifies that display changes properly invalidate the text autosiz er. This test passes if this text is not overlapping with itself. Lorem ipsum do lor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitatio n ullamco laboris nisi ut aliquip ex ea commodo consequat.
23 </div>
24 </span>
25 <script>
26 window.onload = function() {
27 var forceLayout1 = document.body.offsetTop;
28 document.getElementById('inlineToBlock').style.display = "block";
29 var forceLayout2 = document.body.offsetTop;
30 if (window.testRunner)
31 testRunner.notifyDone();
32 }
33 </script>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/platform/mac/fast/text-autosizing/display-type-change-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698