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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/dynamic/invalid-spanner-container-becomes-valid.html

Issue 2479873002: Descendants may become or cease to be spanners when an ancestor changes style. (Closed)
Patch Set: Created 4 years, 1 month 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 <p>There should be a blue square below, and no red.</p>
3 <div id="multicol" style="columns:2; column-gap:80px; width:100px; background:re d;">
4 <div id="changeMe" style="float:left;">
5 <div id="spanner" style="column-span:all; height:100px; background:blue; "></div>
6 </div>
7 </div>
8 <script src="../../../resources/testharness.js"></script>
9 <script src="../../../resources/testharnessreport.js"></script>
10 <script>
11 test(() => {
12 var multicol = document.getElementById("multicol");
13 var spanner = document.getElementById("spanner");
14 var changeMe = document.getElementById('changeMe');
15 document.documentElement.offsetTop;
16
17 changeMe.style.cssFloat = 'none';
18 assert_equals(multicol.offsetHeight, 100);
19 assert_equals(spanner.offsetWidth, 100);
20 }, "Turn a spanner candidate's parent from float into regular block");
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698