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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/client-rects-sole-empty-block.html

Issue 2597633002: Even empty block intervals should be associated with a fragmentainer. (Closed)
Patch Set: Created 3 years, 12 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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>body { margin:8px; }</style>
5 <div style="margin:100px; columns:2; column-gap:20px; width:420px;">
6 <div id="empty"></div>
7 </div>
8 <script>
9 test(function() {
10 var rects = document.getElementById("empty").getClientRects();
11 assert_equals(rects.length, 1);
12 assert_equals(rects[0].left, 108);
13 assert_equals(rects[0].top, 100);
szager1 2016/12/21 23:47:11 Why is 'top' not 108?
mstensho (USE GERRIT) 2016/12/22 08:10:26 Margin collapsing between body and the outer div.
14 assert_equals(rects[0].right, 308);
15 assert_equals(rects[0].bottom, 100);
16 }, "Zero-height block in otherwise empty multicol");
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698