Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1198 from mrego/update-minimum-size-tests
Browse files Browse the repository at this point in the history
[css-grid] Update implied minimum size of grid items tests
  • Loading branch information
mrego committed Feb 14, 2017
2 parents daf68e6 + 9ec6c7a commit 43d3f34
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 18 deletions.
5 changes: 3 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-001.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="flags" content="ahem" />
<meta name="assert" content="Checks that minimum size for grid items is the content size." />
Expand All @@ -18,7 +18,8 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
Expand Down
5 changes: 3 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-002.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="Checks that minimum size for grid items is the content size." />
<style type="text/css"><![CDATA[
Expand All @@ -17,7 +17,8 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
Expand Down
5 changes: 3 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-003.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="Checks that minimum size for grid items is the specified size regardless of the content size." />
<style type="text/css"><![CDATA[
Expand All @@ -17,7 +17,8 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
Expand Down
5 changes: 3 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-004.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="Checks that minimum size for grid items is the specified size regardless of the content size." />
<style type="text/css"><![CDATA[
Expand All @@ -17,7 +17,8 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
Expand Down
5 changes: 3 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-005.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="flags" content="image" />
<meta name="assert" content="Checks that minimum size for grid items is the content size." />
Expand All @@ -18,7 +18,8 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}
]]></style>
</head>
Expand Down
5 changes: 3 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-006.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="flags" content="image" />
<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)." />
Expand All @@ -18,7 +18,8 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
Expand Down
7 changes: 5 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-007.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="flags" content="image" />
<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)." />
Expand All @@ -18,11 +18,14 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
width: 100px;
justify-self: stretch;
align-self: stretch;
}
]]></style>
</head>
Expand Down
5 changes: 3 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-008.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="flags" content="image" />
<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)." />
Expand All @@ -18,7 +18,8 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
Expand Down
7 changes: 5 additions & 2 deletions css-grid-1/grid-items/grid-minimum-size-grid-items-009.xht
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>CSS Grid Layout Test: Minimum size of grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.5. Implied Minimum Size of Grid Items" />
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#min-size-auto" title="6.6. Implied Minimum Size of Grid Items" />
<link rel="match" href="../../css21/reference/ref-filled-green-100px-square.xht" />
<meta name="flags" content="image" />
<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)." />
Expand All @@ -18,11 +18,14 @@

#constrained-grid {
display: grid;
grid: 10px / 10px;
width: 10px;
height: 10px;
}

#test-grid-item-overlapping-green {
height: 100px;
justify-self: stretch;
align-self: stretch;
}
]]></style>
</head>
Expand Down

0 comments on commit 43d3f34

Please sign in to comment.