Automatic update from web-platform-tests [Masonry] Add tests for stacking-axis alignment Adding basic tests for stacking axis alignment per the resolutions in CSSWG issue [1]. Follow-ups will be needed to actually implement functionality for the cases here, as well as for cases that intersect with dense-packing. [1] https://issues.chromium.org/issues/469745780 Bug: 343257585 Change-Id: I7a9134b1fc55fc482e4f92e7f29836f89858c7d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7869777 Reviewed-by: Yanling Wang <yanlingwang@microsoft.com> Reviewed-by: Alison Maher <almaher@microsoft.com> Commit-Queue: Celeste Pan <celestepan@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1638746} -- wpt-commits: 949fd7a697e116db61b52c1e8da8ea52feb69e6f wpt-pr: 60227
56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Grid Lanes Test: align-items stretch and center in column direction stacking axis</title>
|
|
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment">
|
|
<link rel="match" href="column-align-items-001-ref.html">
|
|
<style>
|
|
html, body {
|
|
color: black; background-color: white; font: 16px/1 monospace; padding: 0; margin: 0;
|
|
}
|
|
|
|
.grid-lanes {
|
|
display: grid-lanes;
|
|
grid-template-columns: repeat(3, 80px);
|
|
gap: 5px;
|
|
padding: 2px;
|
|
margin: 5px;
|
|
}
|
|
|
|
item {
|
|
display: block;
|
|
color: white;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="grid-lanes" style="align-items: stretch;">
|
|
<item style="height: 70px; background: #f4a0a0;">1</item>
|
|
<item style="height: 40px; background: #2ca02c;">2</item>
|
|
<item style="height: 120px; background: #ff7f0e;">3</item>
|
|
<item style="height: 60px; background: #ffbb78;">4</item>
|
|
<item style="height: 50px; background: #aad4f5;">5</item>
|
|
<item style="height: 80px; background: #c5b0d5;">6</item>
|
|
<item style="background: #d62728;">7</item>
|
|
<item style="background: #98df8a;">8</item>
|
|
<item style="background: #9edae5;">9</item>
|
|
</div>
|
|
|
|
<div class="grid-lanes" style="align-items: center;">
|
|
<item style="height: 70px; background: #f4a0a0;">1</item>
|
|
<item style="height: 40px; background: #2ca02c;">2</item>
|
|
<item style="height: 120px; background: #ff7f0e;">3</item>
|
|
<item style="height: 60px; background: #ffbb78;">4</item>
|
|
<item style="height: 50px; background: #aad4f5;">5</item>
|
|
<item style="height: 80px; background: #c5b0d5;">6</item>
|
|
<item style="height: 40px; background: #d62728;">7</item>
|
|
<item style="height: 50px; background: #98df8a;">8</item>
|
|
<item style="height: 35px; background: #9edae5;">9</item>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|