Skip to content

Commit 247674b

Browse files
stevennovaryoservo-wpt-sync
authored andcommitted
Organize WPT test CSS
Signed-off-by: stevennovaryo <[email protected]>
1 parent e69f105 commit 247674b

7 files changed

+38
-179
lines changed

css/css-grid/grid-items/grid-items-relative-positioned-containing-block-001.html

+1-29
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,7 @@
88
<link rel="help" href="https://github.com/servo/servo/issues/34535">
99
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
1010
<meta name="assert" content="Ensures that relative positioned grid item established as an absolute containing block correctly.">
11-
<style>
12-
.grid {
13-
display: grid;
14-
width: 100%;
15-
grid-template-columns: 100px;
16-
grid-template-rows: 100px;
17-
}
18-
.container {
19-
position: relative;
20-
grid-area: 1 / 1;
21-
}
22-
.box1 {
23-
position: absolute;
24-
width: 100px;
25-
height: 100px;
26-
grid-area: 1 / 1;
27-
}
28-
.box-abspos {
29-
position: absolute;
30-
width: 100%;
31-
height: 100%;
32-
}
33-
.red {
34-
background: red;
35-
}
36-
.green {
37-
background: green;
38-
}
39-
</style>
11+
<link rel="stylesheet" href="support/grid-items-relative-positioned-containing-block.css">
4012

4113
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
4214

css/css-grid/grid-items/grid-items-relative-positioned-containing-block-002.html

+1-29
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,7 @@
88
<link rel="help" href="https://github.com/servo/servo/issues/34535">
99
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
1010
<meta name="assert" content="Ensures that relative positioned grid item established as an absolute containing block correctly.">
11-
<style>
12-
.grid {
13-
display: grid;
14-
width: 100%;
15-
grid-template-columns: 100px;
16-
grid-template-rows: 100px;
17-
}
18-
.container {
19-
position: relative;
20-
grid-area: 1 / 1;
21-
}
22-
.box1 {
23-
position: absolute;
24-
width: 100px;
25-
height: 100px;
26-
grid-area: 1 / 1;
27-
}
28-
.box-abspos {
29-
position: absolute;
30-
width: 100%;
31-
height: 100%;
32-
}
33-
.red {
34-
background: red;
35-
}
36-
.green {
37-
background: green;
38-
}
39-
</style>
11+
<link rel="stylesheet" href="support/grid-items-relative-positioned-containing-block.css">
4012

4113
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
4214

css/css-grid/grid-items/grid-items-relative-positioned-containing-block-003.html

+1-29
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,7 @@
88
<link rel="help" href="https://github.com/servo/servo/issues/34535">
99
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
1010
<meta name="assert" content="Ensures that relative positioned grid item established as an absolute containing block correctly.">
11-
<style>
12-
.grid {
13-
display: grid;
14-
width: 100%;
15-
grid-template-columns: 100px;
16-
grid-template-rows: 100px;
17-
}
18-
.container {
19-
position: relative;
20-
grid-area: 1 / 1;
21-
}
22-
.box1 {
23-
position: absolute;
24-
width: 100px;
25-
height: 100px;
26-
grid-area: 1 / 1;
27-
}
28-
.box-abspos {
29-
position: absolute;
30-
width: 100%;
31-
height: 100%;
32-
}
33-
.red {
34-
background: red;
35-
}
36-
.green {
37-
background: green;
38-
}
39-
</style>
11+
<link rel="stylesheet" href="support/grid-items-relative-positioned-containing-block.css">
4012

4113
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
4214

css/css-grid/grid-items/grid-items-relative-positioned-containing-block-004.html

+1-29
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,7 @@
88
<link rel="help" href="https://github.com/servo/servo/issues/34535">
99
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
1010
<meta name="assert" content="Ensures that relative positioned grid item established as a absolute containing block correctly.">
11-
<style>
12-
.grid {
13-
display: grid;
14-
width: 100%;
15-
grid-template-columns: 100px;
16-
grid-template-rows: 100px;
17-
}
18-
.container {
19-
position: relative;
20-
grid-area: 1 / 1;
21-
}
22-
.box1 {
23-
position: absolute;
24-
width: 100px;
25-
height: 100px;
26-
grid-area: 1 / 1;
27-
}
28-
.box-fixpos {
29-
position: fixed;
30-
width: 100px;
31-
height: 100px;
32-
}
33-
.red {
34-
background: red;
35-
}
36-
.green {
37-
background: green;
38-
}
39-
</style>
11+
<link rel="stylesheet" href="support/grid-items-relative-positioned-containing-block.css">
4012

4113
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
4214

css/css-grid/grid-items/grid-items-relative-positioned-containing-block-005.html

+1-29
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,7 @@
88
<link rel="help" href="https://github.com/servo/servo/issues/34535">
99
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
1010
<meta name="assert" content="Ensures that relative positioned grid item established as a absolute containing block correctly.">
11-
<style>
12-
.grid {
13-
display: grid;
14-
width: 100%;
15-
grid-template-columns: 100px;
16-
grid-template-rows: 100px;
17-
}
18-
.container {
19-
position: relative;
20-
grid-area: 1 / 1;
21-
}
22-
.box1 {
23-
position: absolute;
24-
width: 100px;
25-
height: 100px;
26-
grid-area: 1 / 1;
27-
}
28-
.box-fixpos {
29-
position: fixed;
30-
width: 100px;
31-
height: 100px;
32-
}
33-
.red {
34-
background: red;
35-
}
36-
.green {
37-
background: green;
38-
}
39-
</style>
11+
<link rel="stylesheet" href="support/grid-items-relative-positioned-containing-block.css">
4012

4113
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
4214

css/css-grid/grid-items/grid-items-relative-positioned-containing-block-006.html

+1-34
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,7 @@
88
<link rel="help" href="https://github.com/servo/servo/issues/34535">
99
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
1010
<meta name="assert" content="Ensures that relative positioned grid item established as a absolute containing block correctly.">
11-
<style>
12-
.grid {
13-
display: grid;
14-
width: 100%;
15-
grid-template-columns: 100px;
16-
grid-template-rows: 100px;
17-
}
18-
.container {
19-
position: relative;
20-
grid-area: 1 / 1;
21-
}
22-
.box1 {
23-
position: absolute;
24-
width: 100px;
25-
height: 100px;
26-
grid-area: 1 / 1;
27-
}
28-
.box-abspos {
29-
position: absolute;
30-
width: 100%;
31-
height: 100%;
32-
}
33-
.box-fixpos {
34-
position: fixed;
35-
width: 100px;
36-
height: 100px;
37-
}
38-
.red {
39-
background: red;
40-
}
41-
.green {
42-
background: green;
43-
}
44-
</style>
11+
<link rel="stylesheet" href="support/grid-items-relative-positioned-containing-block.css">
4512

4613
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
4714

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.grid {
2+
display: grid;
3+
width: 100%;
4+
grid-template-columns: 100px;
5+
grid-template-rows: 100px;
6+
}
7+
.container {
8+
position: relative;
9+
grid-area: 1 / 1;
10+
}
11+
.box1 {
12+
position: absolute;
13+
width: 100px;
14+
height: 100px;
15+
grid-area: 1 / 1;
16+
}
17+
.box-abspos {
18+
position: absolute;
19+
width: 100%;
20+
height: 100%;
21+
}
22+
.box-fixpos {
23+
position: fixed;
24+
width: 100px;
25+
height: 100px;
26+
}
27+
.red {
28+
background: red;
29+
}
30+
.green {
31+
background: green;
32+
}

0 commit comments

Comments
 (0)