Skip to content

Commit 9ec6c7a

Browse files
committed
[css-grid] Update implied minimum size of grid items tests
Once that issue w3c/csswg-drafts#283 has been solved, this patch is updating the current tests related to "Implied Minimum Size of Grid Items" section: https://drafts.csswg.org/css-grid/#min-size-auto
1 parent 4db97d5 commit 9ec6c7a

9 files changed

+31
-18
lines changed

css-grid-1/grid-items/grid-minimum-size-grid-items-001.xht

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="flags" content="ahem" />
99
<meta name="assert" content="Checks that minimum size for grid items is the content size." />
@@ -18,7 +18,8 @@
1818

1919
#constrained-grid {
2020
display: grid;
21-
grid: 10px / 10px;
21+
width: 10px;
22+
height: 10px;
2223
}
2324

2425
#test-grid-item-overlapping-green {

css-grid-1/grid-items/grid-minimum-size-grid-items-002.xht

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="assert" content="Checks that minimum size for grid items is the content size." />
99
<style type="text/css"><![CDATA[
@@ -17,7 +17,8 @@
1717

1818
#constrained-grid {
1919
display: grid;
20-
grid: 10px / 10px;
20+
width: 10px;
21+
height: 10px;
2122
}
2223

2324
#test-grid-item-overlapping-green {

css-grid-1/grid-items/grid-minimum-size-grid-items-003.xht

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="assert" content="Checks that minimum size for grid items is the specified size regardless of the content size." />
99
<style type="text/css"><![CDATA[
@@ -17,7 +17,8 @@
1717

1818
#constrained-grid {
1919
display: grid;
20-
grid: 10px / 10px;
20+
width: 10px;
21+
height: 10px;
2122
}
2223

2324
#test-grid-item-overlapping-green {

css-grid-1/grid-items/grid-minimum-size-grid-items-004.xht

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="assert" content="Checks that minimum size for grid items is the specified size regardless of the content size." />
99
<style type="text/css"><![CDATA[
@@ -17,7 +17,8 @@
1717

1818
#constrained-grid {
1919
display: grid;
20-
grid: 10px / 10px;
20+
width: 10px;
21+
height: 10px;
2122
}
2223

2324
#test-grid-item-overlapping-green {

css-grid-1/grid-items/grid-minimum-size-grid-items-005.xht

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="flags" content="image" />
99
<meta name="assert" content="Checks that minimum size for grid items is the content size." />
@@ -18,7 +18,8 @@
1818

1919
#constrained-grid {
2020
display: grid;
21-
grid: 10px / 10px;
21+
width: 10px;
22+
height: 10px;
2223
}
2324
]]></style>
2425
</head>

css-grid-1/grid-items/grid-minimum-size-grid-items-006.xht

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="flags" content="image" />
99
<meta name="assert" content="Checks that minimum size for grid items is the specified size for width (regardless the content size) and the transferred size for height (as it's smaller than the content size of the image)." />
@@ -18,7 +18,8 @@
1818

1919
#constrained-grid {
2020
display: grid;
21-
grid: 10px / 10px;
21+
width: 10px;
22+
height: 10px;
2223
}
2324

2425
#test-grid-item-overlapping-green {

css-grid-1/grid-items/grid-minimum-size-grid-items-007.xht

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="flags" content="image" />
99
<meta name="assert" content="Checks that minimum size for grid items is the specified size for width (regardless the content size) and the content size for height (as it's smaller than the transferred size of the image)." />
@@ -18,11 +18,14 @@
1818

1919
#constrained-grid {
2020
display: grid;
21-
grid: 10px / 10px;
21+
width: 10px;
22+
height: 10px;
2223
}
2324

2425
#test-grid-item-overlapping-green {
2526
width: 100px;
27+
justify-self: stretch;
28+
align-self: stretch;
2629
}
2730
]]></style>
2831
</head>

css-grid-1/grid-items/grid-minimum-size-grid-items-008.xht

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="flags" content="image" />
99
<meta name="assert" content="Checks that minimum size for grid items is the specified size for height (regardless the content size) and the transferred size for width (as it's smaller than the content size of the image)." />
@@ -18,7 +18,8 @@
1818

1919
#constrained-grid {
2020
display: grid;
21-
grid: 10px / 10px;
21+
width: 10px;
22+
height: 10px;
2223
}
2324

2425
#test-grid-item-overlapping-green {

css-grid-1/grid-items/grid-minimum-size-grid-items-009.xht

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>CSS Grid Layout Test: Minimum size of grid items</title>
55
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
6-
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
6+
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
77
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
88
<meta name="flags" content="image" />
99
<meta name="assert" content="Checks that minimum size for grid items is the specified size for height (regardless the content size) and the content size for width (as it's smaller than the transferred size of the image)." />
@@ -18,11 +18,14 @@
1818

1919
#constrained-grid {
2020
display: grid;
21-
grid: 10px / 10px;
21+
width: 10px;
22+
height: 10px;
2223
}
2324

2425
#test-grid-item-overlapping-green {
2526
height: 100px;
27+
justify-self: stretch;
28+
align-self: stretch;
2629
}
2730
]]></style>
2831
</head>

0 commit comments

Comments
 (0)