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

Side by Side Diff: third_party/WebKit/LayoutTests/fragmentation/table-with-border-spacing.html

Issue 2803383002: The first table row is pushed down by border-spacing. (Closed)
Patch Set: break-inside:avoid on a row shouldn't prevent breaking inside adjacent border spacing Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 .cell > div { background:white; }
4 </style>
5 <p>No red should be seen below.</p>
6 <div id="multicol" style="columns:2; column-fill:auto; height:70px; width:200px; line-height:20px;">
7 <div style="position:relative; display:table; border-spacing:10px;">
8 <div class="cell" style="display:table-cell; width:30px; background:red; ">
9 <div id="child1">1<br></div>
10 <div id="child2">2<br></div>
11 <div id="child3">3<br></div>
12 <div id="child4">4<br></div>
13 <div id="child5">5<br></div>
14 </div>
15 </div>
16 </div>
17 <script src="../resources/testharness.js"></script>
18 <script src="../resources/testharnessreport.js"></script>
19 <script>
20 test(() => {
21 assert_equals(document.getElementById("child1").offsetTop, 10);
22 assert_equals(document.getElementById("child1").offsetHeight, 20);
23 assert_equals(document.getElementById("child2").offsetTop, 30);
24 assert_equals(document.getElementById("child2").offsetHeight, 20);
25 assert_equals(document.getElementById("child3").offsetTop, 50);
26 assert_equals(document.getElementById("child3").offsetHeight, 20);
27 assert_equals(document.getElementById("child4").offsetTop, 70);
28 assert_equals(document.getElementById("child4").offsetHeight, 20);
29 assert_equals(document.getElementById("child5").offsetTop, 90);
30 assert_equals(document.getElementById("child5").offsetHeight, 20);
31 }, "Table with border spacing");
32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698