Index: third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/grid-content-distribution-with-collapsed-tracks-007.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/grid-content-distribution-001.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/grid-content-distribution-with-collapsed-tracks-007.html |
similarity index 60% |
copy from third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/grid-content-distribution-001.html |
copy to third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/grid-content-distribution-with-collapsed-tracks-007.html |
index 844ceb11faffdb1e9a37e022f60ec3366afabeed..2e6a4af8edf6fc0218d6bb8f9e692d7f96b635f4 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/grid-content-distribution-001.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/alignment/grid-content-distribution-with-collapsed-tracks-007.html |
@@ -1,6 +1,6 @@ |
<!DOCTYPE html> |
<meta charset="utf-8"> |
-<title>CSS Grid Layout Test: Content Distribution 'space-evenly'</title> |
+<title>CSS Grid Layout Test: Content Distribution 'space-evenly' and gaps on 3x3 grid with collapsed tracks</title> |
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com"> |
<link rel="help" href="https://drafts.csswg.org/css-align-3/#content-distribution"> |
<link rel="help" href="https://drafts.csswg.org/css-align-3/#valdef-align-content-space-evenly"> |
@@ -17,16 +17,18 @@ |
.block > div { |
position: absolute; |
background: red; |
- width: 25px; |
- height: 25px; |
+ width: 20px; |
+ height: 20px; |
} |
.grid { |
z-index: 1; |
display: grid; |
width: 200px; |
height: 200px; |
- grid-template-columns: 25px 25px; |
- grid-template-rows: 25px 25px; |
+ grid-template-columns: repeat(auto-fit, 20px); |
+ grid-template-rows: repeat(auto-fit, 20px); |
+ grid-row-gap: 10px; |
+ grid-column-gap: 10px; |
align-content: space-evenly; |
justify-content: space-evenly; |
} |
@@ -34,10 +36,14 @@ |
</style> |
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> |
<div class="block"> |
- <div style="top: 50px; left: 50px;"></div> |
- <div style="top: 125px; left: 125px;"></div> |
+ <div style="top: 30px; left: 90px;"></div> |
+ <div style="top: 30px; left: 150px;"></div> |
+ <div style="top: 90px; left: 30px;"></div> |
+ <div style="top: 150px; left: 30px;"></div> |
</div> |
<div class="grid"> |
- <div style="grid-row: 1; grid-column: 1;"></div> |
- <div style="grid-row: 2; grid-column: 2;"></div> |
+ <div class="item" style="grid-row: 1; grid-column: 3;"></div> |
+ <div class="item" style="grid-row: 1; grid-column: 4;"></div> |
+ <div class="item" style="grid-row: 3; grid-column: 1;"></div> |
+ <div class="item" style="grid-row: 4; grid-column: 1;"></div> |
</div> |