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

Unified Diff: LayoutTests/fast/text-autosizing/constrained-floats-expected.html

Issue 16019004: Text Autosizing: Treat position:absolute/fixed as constrained height. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/text-autosizing/constrained-floats-expected.html
diff --git a/LayoutTests/fast/text-autosizing/constrained-then-float-ancestors-expected.html b/LayoutTests/fast/text-autosizing/constrained-floats-expected.html
similarity index 59%
rename from LayoutTests/fast/text-autosizing/constrained-then-float-ancestors-expected.html
rename to LayoutTests/fast/text-autosizing/constrained-floats-expected.html
index a7e662617a4ed430bfa275ae72fedb87c7c438f3..18d4041f04d2f8d3cfc70525431dd5fcea025583 100644
--- a/LayoutTests/fast/text-autosizing/constrained-then-float-ancestors-expected.html
+++ b/LayoutTests/fast/text-autosizing/constrained-floats-expected.html
@@ -11,11 +11,16 @@ body { width: 800px; margin: 0; overflow-y: hidden; }
</head>
<body>
+<div style="max-height: 500px; float: left">
+ This text should not be autosized (its computed font-size should remain 16px), as autosizing usually causes text to wrap onto more lines, which might cause it to overflow the block's max-height (the float:left doesn't affect this).<br>
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+</div>
+
<div style="max-height: 500px">
<div style="float: left">
<div style="font-size: 2.5rem">
This text should be autosized to 40px computed font-size, since the parent is float:left so the height is considered to be unconstrained (ancestors of the parent are ignored).<br>
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>
</div>
</div>

Powered by Google App Engine
This is Rietveld 408576698