Bug 1446278 [wpt PR 10069] - [css-grid] Fix relative path to grid.css file, a=testonly
[gecko.git] / testing / web-platform / tests / css / css-grid / abspos / grid-positioned-items-unknown-named-grid-line-001.html
blob24d9d769f99079d19519d05f82e8fd637906fe8a
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Grid Layout Test: Grid positioned items unknown named grid line</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-1/#abspos" title="9. Absolute Positioning">
6 <meta name="assert" content="This test checks that grid placement properties of absolutely positioned items using unknown named grid lines are treated as 'auto'.">
7 <link rel="stylesheet" href="support/grid.css">
8 <style>
10 .grid {
11 grid-template-columns: 100px 200px;
12 grid-template-rows: 50px 150px;
13 width: 500px;
14 height: 300px;
15 border: 5px solid black;
16 margin: 30px;
17 padding: 15px;
18 /* Ensures that the grid container is the containing block of the absolutely positioned grid children. */
19 position: relative;
22 .absolute {
23 position: absolute;
26 .startUnknownLine {
27 background-color: blue;
28 grid-column: foo / 3;
29 grid-row: bar / 3;
32 .endUnknownLine {
33 background-color: orange;
34 grid-column: 1 / foo;
35 grid-row: 1 / bar;
38 .startAndEndUnknownLines {
39 background-color: green;
40 grid-column: foo / bar;
41 grid-row: foo / bar;
44 </style>
45 <script src="/resources/testharness.js"></script>
46 <script src="/resources/testharnessreport.js"></script>
47 <script src="/resources/check-layout-th.js"></script>
49 <body onload="checkLayout('.grid')">
51 <div id="log"></div>
53 <div class="grid">
54 <div class="absolute sizedToGridArea startAndEndUnknownLines"
55 data-offset-x="0" data-offset-y="0" data-expected-width="530" data-expected-height="330">
56 </div>
57 <div class="absolute sizedToGridArea endUnknownLine"
58 data-offset-x="15" data-offset-y="15" data-expected-width="515" data-expected-height="315">
59 </div>
60 <div class="absolute sizedToGridArea startUnknownLine"
61 data-offset-x="0" data-offset-y="0" data-expected-width="315" data-expected-height="215">
62 </div>
63 </div>
65 <div class="grid directionRTL">
66 <div class="absolute sizedToGridArea startAndEndUnknownLines"
67 data-offset-x="0" data-offset-y="0" data-expected-width="530" data-expected-height="330">
68 </div>
69 <div class="absolute sizedToGridArea endUnknownLine"
70 data-offset-x="0" data-offset-y="15" data-expected-width="515" data-expected-height="315">
71 </div>
72 <div class="absolute sizedToGridArea startUnknownLine"
73 data-offset-x="215" data-offset-y="0" data-expected-width="315" data-expected-height="215">
74 </div>
75 </div>
77 </body>