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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/composited-layer-will-change.html

Issue 2028893002: Disallow fragmentation of composited content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 .multicol { 3 .multicol {
4 margin: 3em 0; 4 margin: 3em 0;
5 width: 60px; 5 width: 60px;
6 -webkit-column-width: 20px; 6 -webkit-column-width: 20px;
7 -webkit-column-gap: 0; 7 -webkit-column-gap: 0;
8 column-fill: auto; 8 column-fill: auto;
9 height: 60px; 9 height: 60px;
10 } 10 }
11 .square { 11 .square {
12 width: 20px; 12 width: 20px;
13 height: 20px; 13 height: 20px;
14 background: green; 14 background: green;
15 } 15 }
16 #test1 .layer { will-change: transform; } 16 #test1 .layer { will-change: transform; }
17 #test2 .layer { will-change: opacity; } 17 #test2 .layer { will-change: opacity; }
18 #test3 .layer { will-change: top; position: relative; } 18 #test3 .layer { will-change: top; position: relative; }
19 </style> 19 </style>
20 20
21 <p>There should be three green squares below.</p> 21 <p>If no compositing were present, there should be two green squares below. Sinc e some elements are composited, and therefore not fragmented, the output is diff erent.</p>
22 <div id="test1" class="multicol"> 22 <div id="test1" class="multicol">
23 <div class="layer"> <!-- first column --> 23 <div class="layer"> <!-- first column -->
24 <div class="square"></div> 24 <div class="square"></div>
25 </div> 25 </div>
26 <div class="square"></div> 26 <div class="square"></div>
27 <div class="layer"> <!-- from first to second column --> 27 <div class="layer"> <!-- from first to second column -->
28 <div class="square"></div> 28 <div class="square"></div>
29 <div class="square"></div> 29 <div class="square"></div>
30 </div> 30 </div>
31 <div class="square"></div> 31 <div class="square"></div>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 <div class="square"></div> 65 <div class="square"></div>
66 </div> 66 </div>
67 <div class="square"></div> 67 <div class="square"></div>
68 <div class="layer"> <!-- from second to third column --> 68 <div class="layer"> <!-- from second to third column -->
69 <div class="square"></div> 69 <div class="square"></div>
70 <div class="square"></div> 70 <div class="square"></div>
71 <div class="square"></div> 71 <div class="square"></div>
72 </div> 72 </div>
73 <div class="square"></div> 73 <div class="square"></div>
74 </div> 74 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698