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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/first-line-in-block-with-padding-exact-fit.html

Issue 1428063009: Fix off-by-one (or off-by-one-sixtyfourth) error when checking what a column can hold. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/LayoutTests/fast/multicol/first-line-in-block-with-padding-exact-fit-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/multicol/first-line-in-block-with-padding-exact-fit.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/first-line-in-block-with-padding-exact-fit.html b/third_party/WebKit/LayoutTests/fast/multicol/first-line-in-block-with-padding-exact-fit.html
new file mode 100644
index 0000000000000000000000000000000000000000..005f12100b71369f58dd62358b91cbe0e4e91e95
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/first-line-in-block-with-padding-exact-fit.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<p>When its first line needs a column break, we should push the entire block to the next column, also when it just barely fits.</p>
+<p>There should be a blue square below.</p>
+<div id="multicol" style="position:relative; -webkit-columns:2; -webkit-column-gap:0; column-fill:auto; width:80px; height:40px; line-height:30px;">
+ <div style="height:10px;"></div>
+ <div data-offset-x="40" data-offset-y="0" style="padding-top:10px; background:blue;"><br></div>
+</div>
+<script>
+ checkLayout("#multicol");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/first-line-in-block-with-padding-exact-fit-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698