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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/table-in-subpixel-fragmentainer.html

Issue 2382043003: Use ceil() when integerizing pagination struts before table rows. (Closed)
Patch Set: rebase master 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
Index: third_party/WebKit/LayoutTests/fragmentation/table-in-subpixel-fragmentainer.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/table-in-subpixel-fragmentainer.html b/third_party/WebKit/LayoutTests/fragmentation/table-in-subpixel-fragmentainer.html
new file mode 100644
index 0000000000000000000000000000000000000000..f3aacc21c0fb1696bf569fda61d18c713af65310
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/table-in-subpixel-fragmentainer.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<style>
+body { overflow:hidden; } /* Avoid triggering a second layout pass, as that might hide bugs. */
+.table { display:table; width:100%; }
+.row { display:table-row; break-inside:avoid; }
+.row > div { width:100%; height:60px; background:blue; }
+</style>
+<p>There should be six blue squares below. They should ideally be
+ perfectly vertically aligned, but since Blink doesn't support
+ subpixel rendering inside tables, off-by-one is acceptable. But
+ there should be no blue lines below the squares.</p>
+<div id="multicol" style="position:relative; width:410px; columns:6; column-fill:auto; column-gap:10px; height:88.7px;">
+ <div class="table">
+ <div class="row">
+ <div data-offset-x="0"></div>
+ </div>
+ <div class="row">
+ <div data-offset-x="70"></div>
+ </div>
+ <div class="row">
+ <div data-offset-x="140"></div>
+ </div>
+ <div class="row">
+ <div data-offset-x="210"></div>
+ </div>
+ <div class="row">
+ <div data-offset-x="280"></div>
+ </div>
+ <div class="row">
+ <div data-offset-x="350"></div>
+ </div>
+ </div>
+</div>
+
+<script src="../resources/check-layout.js"></script>
+<script>
+ checkLayout("#multicol");
+</script>

Powered by Google App Engine
This is Rietveld 408576698