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.8 KiB
HTML

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