Automatic update from web-platform-tests [Masonry] Fix content alignment's `start` and `end` behavior Implemented the fix to keep the the definition of keywords `start` and `end` for content alignment to stay consistent despite `fill-reverse` and `track-reverse`. The behavior is still up for debate in s CSSWG issue [1]. In columns, `start` should indicate the top of the container always, and in row layouts, `start` should indicate the left of the container always. Tests were also added for alignment to ensure that `flex-start` and `flex-end` behave the same as `start` and `end`. [1] https://github.com/w3c/csswg-drafts/issues/14052 Bug: 343257585 Change-Id: I2b77a876f745db82182faecd9c12f9f42defd7fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8012851 Reviewed-by: Yanling Wang <yanlingwang@microsoft.com> Commit-Queue: Celeste Pan <celestepan@microsoft.com> Reviewed-by: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1658390} -- wpt-commits: c9deb82e02091bcba0d1db4bf214f8c437319fbb wpt-pr: 61132
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: ensure flex-start and flex-end behave the same as start and end for align-items</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-002-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: flex-start;">
|
|
<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>
|
|
|
|
<div class="grid-lanes" style="align-items: flex-end;">
|
|
<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>
|