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

Unified Diff: LayoutTests/fast/text-autosizing/supercluster-multiple-layout.html

Issue 231663006: Modify supercluster multiplier logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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/supercluster-multiple-layout.html
diff --git a/LayoutTests/fast/text-autosizing/supercluster-multiple-layout.html b/LayoutTests/fast/text-autosizing/supercluster-multiple-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..656c0c62aab6841d84de73e605d66d85371a5e62
--- /dev/null
+++ b/LayoutTests/fast/text-autosizing/supercluster-multiple-layout.html
@@ -0,0 +1,47 @@
+<!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 id="c1"><tr><td>
+ 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.
+</td></tr></table>
+
+<table id="c2" style="margin-left: 50px"><tr><td>
+ Another comment.
+</td></tr></table>
+
+<script>
+
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+setTimeout(function() {
+ var forceLayout = document.body.offsetTop;
+
+ var c3 = document.querySelector('#c2').cloneNode(true);
+ c3.id = 'c3';
+ c3.style.marginLeft = '100px';
+
+ document.body.appendChild(c3);
+ forceLayout = document.body.offsetTop;
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+}, 0);
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698