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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-001.html

Issue 2665133003: [css-grid] Fix behavior of positioned items without specific dimensions (Closed)
Patch Set: Applied suggested changes 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-001-ref.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Grid Layout Test: Positioned grid items</title>
4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5 <link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Abso lute Positioning">
6 <link rel="match" href="positioned-grid-items-001-ref.html">
7 <meta name="assert" content="Checks that absolutely positioned grid items are pr operly placed and sized when they have a static position (left/rigth and top/bot tom are 'auto').">
8 <style>
9 #grid {
10 display: grid;
11 grid: 150px 100px / 200px 300px;
12 margin: 1px 2px 3px 4px;
13 padding: 20px 15px 10px 5px;
14 border-width: 9px 3px 12px 6px;
15 border-style: solid;
16 width: 550px;
17 height: 400px;
18 position: relative;
19 }
20
21 #grid > div {
22 position: absolute;
23 }
24
25 #firstItem {
26 background: magenta;
27 grid-column: 1 / 2;
28 grid-row: 1 / 2;
29 }
30
31 #secondItem {
32 background: cyan;
33 grid-column: 2 / 3;
34 grid-row: 1 / 2;
35 }
36
37 #thirdItem {
38 background: yellow;
39 grid-column: 1 / 2;
40 grid-row: 2 / 3;
41 }
42
43 #fourthItem {
44 background: lime;
45 grid-column: 2 / 3;
46 grid-row: 2 / 3;
47 }
48 </style>
49
50 <p>The test passes if it has the same output than the reference.</p>
51
52 <div id="grid">
53 <div id="firstItem">First item</div>
54 <div id="secondItem">Second item</div>
55 <div id="thirdItem">Third item</div>
56 <div id="fourthItem">Fourth item</div>
57 </div>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-001-ref.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698