Files
Celeste Pan bed7bb8a3a Bug 2070631 [wpt PR 62469] - [Align] Parse flow-start and flow-end keyword, a=testonly
Automatic update from web-platform-tests
[Align] Parse `flow-start` and `flow-end` keyword

Parse the `flow-start` and `flow-end` keywords and ensure that they
evaluate to the same value as `start` and `end` when no placement
reversals are applied. The change is gated behind a separate flag from
grid lanes, since it will apply to all layout modes. We decided we
wanted those keywords in the resolution of this CSSWG issue [1].

A follow-up change will be needed to implement and test `flow-start` and
`flow-end` when `fill-reverse` and `track-reverse` are applied, as well
as for using the `kFlowStart/End` keyword in the code instead of
`kFlexStart/End`.

Copies of tests were added in both the `css-flex` and `css-align`
folders.

[1] https://github.com/w3c/csswg-drafts/issues/14052

Bug: 343257585, 555299635
Change-Id: I5dc0707fbcfeff3674d1884aaf38afa1c9e860fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8307932
Reviewed-by: Alison Maher <almaher@microsoft.com>
Commit-Queue: Celeste Pan <celestepan@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1693943}

--

wpt-commits: 272061587f284327e2f620b29c6444e7a193f628
wpt-pr: 62469
2026-09-11 14:48:20 +00:00

41 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing align-items with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-align-items">
<meta name="assert" content="align-items supports only the grammar 'normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("align-items", "auto");
test_invalid_value("align-items", "baseline last");
test_invalid_value("align-items", "center baseline");
test_invalid_value("align-items", "first");
test_invalid_value("align-items", "flex-start flex-end");
test_invalid_value("align-items", "flow");
test_invalid_value("align-items", "flow-start flow-end");
test_invalid_value("align-items", "flow-start safe");
test_invalid_value("align-items", "last");
test_invalid_value("align-items", "left");
test_invalid_value("align-items", "legacy center");
test_invalid_value("align-items", "legacy left");
test_invalid_value("align-items", "legacy");
test_invalid_value("align-items", "normal baseline");
test_invalid_value("align-items", "right legacy");
test_invalid_value("align-items", "safe");
test_invalid_value("align-items", "self-end unsafe");
test_invalid_value("align-items", "space-around");
test_invalid_value("align-items", "space-between");
test_invalid_value("align-items", "space-evenly");
test_invalid_value("align-items", "start safe");
test_invalid_value("align-items", "unsafe right");
test_invalid_value("align-items", "unsafe");
test_invalid_value("align-items", "anchor-center");
</script>
</body>
</html>