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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html

Issue 826893002: [CSS Grid Layout] Remove stack from grid-auto-flow syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch Created 5 years, 11 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 <html> 2 <html>
3 <head> 3 <head>
4 <link href="resources/grid.css" rel="stylesheet"> 4 <link href="resources/grid.css" rel="stylesheet">
5 <style> 5 <style>
6 .grid { 6 .grid {
7 grid-template-rows: 100px; 7 grid-template-rows: 100px;
8 grid-template-columns: 200px 200px; 8 grid-template-columns: 200px 200px;
9 width: -webkit-fit-content; 9 width: -webkit-fit-content;
10 margin-top: 10px; 10 margin-top: 10px;
11 grid-auto-flow: stack;
12 } 11 }
13 .red { 12 .red {
14 background-color: red; 13 background-color: red;
15 } 14 }
16 .green { 15 .green {
17 background-color: green; 16 background-color: green;
18 } 17 }
19 .positiveZIndex { 18 .positiveZIndex {
20 z-index: 10; 19 z-index: 10;
21 } 20 }
22 .negativeZIndex { 21 .negativeZIndex {
23 z-index: -5; 22 z-index: -5;
24 } 23 }
25 </style> 24 </style>
26 </head> 25 </head>
27 <body> 26 <body>
28 <p>This test checks that grid items with 'z-index' do produce a stacking context and that we honor the property.</p> 27 <p>This test checks that grid items with 'z-index' do produce a stacking context and that we honor the property.</p>
29 <p>For this test to pass, there should be no red below.</p> 28 <p>For this test to pass, there should be no red below.</p>
30 29
31 <div class="grid"> 30 <div class="grid">
32 <div class="sizedToGridArea green positiveZIndex"></div> 31 <div class="sizedToGridArea green positiveZIndex firstRowFirstColumn"></div>
33 <div class="sizedToGridArea red"></div> 32 <div class="sizedToGridArea red firstRowFirstColumn"></div>
34 </div> 33 </div>
35 34
36 <div class="grid"> 35 <div class="grid">
37 <div class="sizedToGridArea green"></div> 36 <div class="sizedToGridArea green firstRowFirstColumn"></div>
38 <div class="sizedToGridArea red negativeZIndex"></div> 37 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div>
39 </div> 38 </div>
40 39
41 <div class="grid"> 40 <div class="grid">
42 <div class="sizedToGridArea green firstRowBothColumn"></div> 41 <div class="sizedToGridArea green firstRowBothColumn"></div>
43 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> 42 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div>
44 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div> 43 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div>
45 </div> 44 </div>
46 45
47 </body> 46 </body>
48 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698