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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-lines.html

Issue 2460673002: Need to remove line pagination struts when no longer fragmented. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-lines.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-unbreakable-blocks.html b/third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-lines.html
similarity index 50%
copy from third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-unbreakable-blocks.html
copy to third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-lines.html
index 422fd0cb1a3f87bf620915241baf9d30d8f19133..14f4dc7daef153be974baa3d335a2223043a731f 100644
--- a/third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-unbreakable-blocks.html
+++ b/third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-lines.html
@@ -1,19 +1,16 @@
<!DOCTYPE html>
-<style>
-#inner > div { break-inside:avoid; }
-</style>
<p>The word "PASS" should be seen 7 times below.</p>
<div id="container" style="position:relative; overflow:hidden; line-height:20px;">
- <div id="multicol" style="float:left; columns:3; column-fill:auto; height:70px; text-align:right;">
+ <div id="multicol" style="float:left; columns:3; column-fill:auto; height:70px; orphans:1; widows:1; text-align:right;">
<div style="width:6em;">
<div id="inner">
- <div id="child1">PA</div>
- <div id="child2">PA</div>
- <div id="child3">PA</div>
- <div id="child4">PA</div>
- <div id="child5">PA</div>
- <div id="child6">PA</div>
- <div id="child7">PA</div>
+ PA<br>
+ PA<br>
+ PA<br>
+ PA<br>
+ PA<br>
+ PA<br>
+ PA<br>
</div>
</div>
</div>
@@ -36,12 +33,6 @@
document.body.offsetTop;
document.getElementById("multicol").style.columns = "auto";
- assert_equals(document.getElementById("child1").offsetTop, 0);
- assert_equals(document.getElementById("child2").offsetTop, 20);
- assert_equals(document.getElementById("child3").offsetTop, 40);
- assert_equals(document.getElementById("child4").offsetTop, 60);
- assert_equals(document.getElementById("child5").offsetTop, 80);
- assert_equals(document.getElementById("child6").offsetTop, 100);
- assert_equals(document.getElementById("child7").offsetTop, 120);
+ assert_equals(document.getElementById("inner").offsetHeight, 140);
}, "No pagination struts should be left behind.");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698