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

Unified Diff: LayoutTests/fast/text-autosizing/constrained-then-position-absolute-ancestors.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-then-position-absolute-ancestors.html
diff --git a/LayoutTests/fast/text-autosizing/constrained-then-position-absolute-ancestors.html b/LayoutTests/fast/text-autosizing/constrained-then-position-absolute-ancestors.html
deleted file mode 100644
index a26d15eed8f6717d9e93b97a094c0583d359893b..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/text-autosizing/constrained-then-position-absolute-ancestors.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-
-<meta name="viewport" content="width=800">
-<style>
-html { font-size: 16px; }
-body { width: 800px; margin: 0; }
-::-webkit-scrollbar {
- /* Keeps the text size multiplier a round number. */
- width: 0px;
-}
-</style>
-
-<script>
-if (window.internals) {
- window.internals.settings.setTextAutosizingEnabled(true);
- window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
-} else if (window.console && console.warn) {
- console.warn("This test depends on the Text Autosizing setting being true, so run it in DumpRenderTree, or manually enable Text Autosizing, and either use a mobile device with 320px device-width (like Nexus S or iPhone), or define HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP.");
-}
-</script>
-
-</head>
-<body>
-
-<div style="max-height: 500px; position: relative">
- <div style="position: absolute">
- <div>
- This text should be autosized to 40px computed font-size, since the parent is position:absolute so the height is considered to be unconstrained (ancestors of the parent are ignored, even if they have position:relative).<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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- </div>
- </div>
-</div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698