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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/dynamic/valid-spanner-container-becomes-invalid.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 two blue squares below.</p>
3 <div id="multicol" style="columns:2; column-gap:50px; width:150px;">
4 <div id="changeMe" style="width:50px;">
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 = 'left';
18 assert_equals(multicol.offsetHeight, 50);
19 assert_equals(spanner.offsetWidth, 50);
20 }, "Turn a spanner's parent from regular block into float");
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698