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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/span/outside-multicol.html

Issue 2799363003: A column-span:all element should always establish a new formatting context. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <p>There should be a green square below.</p>
3 <div style="position:relative;">
4 <div style="float:left; width:50px; height:100px; background:green;"></div>
5 <div id="invalidSpanner" style="column-span:all; width:50px; background:gree n;">
6 <div style="float:left; width:50px; height:100px;"></div>
7 </div>
8 </div>
9 <script src="../../../resources/testharness.js"></script>
10 <script src="../../../resources/testharnessreport.js"></script>
11 <script>
12 test(function() {
13 var invalidSpanner = document.getElementById("invalidSpanner");
14 // It should not overlap with floats in the same block formatting
15 // context.
16 assert_equals(invalidSpanner.offsetLeft, 50);
17 // It should establish a new block formatting context, so that it
18 // stretches to contain all floats inside.
19 assert_equals(invalidSpanner.offsetHeight, 100);
20 }, "Column spanner without ancestor multicol");
21 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698