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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/cells-with-intrinsic-padding.html

Issue 2060103002: Use the correct height on cells when calculating row height in paged contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug 617443 Created 4 years, 6 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/cells-with-intrinsic-padding.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/cells-with-intrinsic-padding.html b/third_party/WebKit/LayoutTests/fragmentation/cells-with-intrinsic-padding.html
new file mode 100644
index 0000000000000000000000000000000000000000..4d3d2f75185459d0114c1c78ec100068201a30f5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/cells-with-intrinsic-padding.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+td {
+ font: 20px Ahem;
+}
+</style>
+<p>crbug.com/617443: Avoid setting a pagination strut on cells when we're laying them out to figure out the height of their row.
+ When we're figuring out the height of the row, we need the raw height of cells and that should exclude struts.
+ The black boxes in the cells below should be on the same baseline.</p>
+<div id="container" style="columns:1; column-fill:auto; column-gap:0; width:250px; height:150px;">
+ <table>
+ <tr><td>Text Text</td><td>Text</td></tr>
+ <tr><td>Text Text</td><td>Text</td></tr>
+ <tr><td>Text Text</td><td>Text</td></tr>
+ <tr><td>Text Text</td><td>Text</td></tr>
+ </table>
+</div>
+<script>
+ document.body.offsetTop;
+ document.getElementById("container").style.width="600px";
+</script>

Powered by Google App Engine
This is Rietveld 408576698