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

Unified Diff: LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html

Issue 189113014: TextAutosizer: unlock multipliers on DOMContentLoaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix TestExpectation to ImageOnlyFailure Created 6 years, 9 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/unlock-multipliers-on-DOMContentLoaded.html
diff --git a/LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html b/LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html
new file mode 100644
index 0000000000000000000000000000000000000000..a066b2c720cbd445dbb205e7b5b7e9e6f6b14f9c
--- /dev/null
+++ b/LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+
+<meta name="viewport" content="width=800">
+<style>
+html { font-size: 16px; }
+body { width: 800px; margin: 0; overflow-y: hidden; }
+</style>
+
+<script src="resources/autosizingTest.js"></script>
+
+</head>
+<body>
+
+<table cellpadding="0" cellspacing="0" width="100%">
+<tr>
+ <td width="50%">
+ <div id="firstDiv">
+ This text should be autosized to 20px computed font-size (16 * 400/320).<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 ni si ut aliquip ex ea commodo consequat.
+ </div>
+ </td>
+ <script>
+ element = document.getElementById("firstDiv");
+ if (element.offsetHeight) {
+ // force layout
+ }
+ </script>
+ <td width="50%">
+ <div>
+ This text should be autosized to 20px computed font-size (16 * 400/320).<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 ni si ut aliquip ex ea commodo consequat.
+ </div>
+ </td>
+</tr>
+</table>
+
+<script>
+ element = document.getElementById("firstDiv");
+ if (element.offsetHeight) {
+ // force layout
+ }
+</script>
+
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/text-autosizing/unlock-multipliers-on-DOMContentLoaded-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698