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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/self-baseline/grid-self-baseline-changes-grid-area-size-012.html

Issue 2868283002: [css-grid] Check if baseline alignment affects grid areas sizing (Closed)
Patch Set: Applied suggested changes. Created 3 years, 5 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
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Grid Layout Test: Self-Baseline alignment may change grid area width< /title>
4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernande z@igalia.com">
5 <link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-self ">
6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-by-baseline">
7 <link rel="match" href="../../../reference/ref-filled-green-100px-square.xht">
8 <meta name="assert" content="Row-Axis Self-Baseline alignment may change grid ar ea width on auto-sized grid and empty items.">
9 <style>
10 .block, .grid { font: 10px/1 Ahem; }
11 .big { font-size: 20px; }
12 .block {
13 position: absolute;
14 z-index: -1;
15 background: green;
16 width: 100px;
17 height: 100px;
18 }
19 .block > div {
20 position: absolute;
21 color: red;
22 }
23 .grid {
24 display: inline-grid;
25 color: green;
26 grid-auto-rows: 50px;
27 justify-items: baseline;
28 justify-content: start;
29 }
30 .grid > div { writing-mode: vertical-lr; }
31 .firstRowFirstColumn {
32 grid-row: 1;
33 grid-column: 1;
34 }
35 .secondRowFirstColumn {
36 grid-row: 2;
37 grid-column: 1;
38 }
39 .firstRowSecondColumn {
40 grid-row: 1;
41 grid-column: 2;
42 }
43 </style>
44 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p >
45 <div class="block">
46 <div style="top: 0px; left: 10px; width: 40px; background: red; height: 40px;" ></div>
47 <div style="top: 0px; left: 50px;">X</div>
48 <div style="top: 10px; left: 50px;">X</div>
49 <div style="top: 30px; left: 50px;">X</div>
50 <div style="top: 50px; left: 0px;">X</div>
51 </div>
52 <div class="grid">
53 <div class="firstRowFirstColumn" style="background: green; width: 40px; height : 40px;"></div>
54 <div class="secondRowFirstColumn big">X</div>
55 <div class="firstRowSecondColumn">XX X</div>
56 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698