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

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: New approach Created 3 years, 7 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 on auto-sized grid and empty items</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="Column-Axis Self-Baseline alignment may change grid area width.">
9 <style>
10 .block {
11 position: absolute;
12 z-index: -1;
13 background: green;
14 width: 100px;
15 height: 100px;
16 }
17 .block > div {
18 position: absolute;
19 color: red;
20 }
21 .grid {
22 display: inline-grid;
23 font: 10px/1 Ahem;
24 color: green;
25 grid-auto-rows: 50px;
26 justify-items: baseline;
27 justify-content: start;
28 }
29
30 .grid > div {
31 writing-mode: vertical-lr;
32 }
33 .i1 {
34 grid-row: 1;
35 grid-column: 1;
36 }
37 .i2 {
38 grid-row: 2;
39 grid-column: 1;
40 font: 20px/1 Ahem;
41 }
42 .i3 {
43 grid-row: 1;
44 grid-column: 2;
45 }
46 </style>
47 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p >
48 <div class="block">
49 <div style="top: 0px; left: 10px; width: 40px; background: red; height: 40px;" ></div>
50 <div style="top: 0px; left: 50px; font: 10px/1 Ahem">X</div>
51 <div style="top: 10px; left: 50px; font: 10px/1 Ahem">X</div>
52 <div style="top: 30px; left: 50px; font: 10px/1 Ahem">X</div>
53 <div style="top: 50px; left: 0px; font: 20px/1 Ahem">X</div>
54 </div>
55 <div class="grid">
56 <div class="i1" style="background: green; width: 40px; height: 40px;"></div>
57 <div class="i2">X</div>
58 <div class="i3">XX X</div>
59 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698