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
41 lines
1.9 KiB
HTML
41 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Box Alignment Level 3: parsing justify-content with invalid values</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-content">
|
|
<meta name="assert" content="justify-content supports only the 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_invalid_value("justify-content", "auto");
|
|
test_invalid_value("justify-content", "baseline last");
|
|
test_invalid_value("justify-content", "baseline");
|
|
test_invalid_value("justify-content", "center baseline");
|
|
test_invalid_value("justify-content", "first baseline");
|
|
test_invalid_value("justify-content", "first");
|
|
test_invalid_value("justify-content", "flex-start flex-end");
|
|
test_invalid_value("justify-content", "flow");
|
|
test_invalid_value("justify-content", "flow-start flow-end");
|
|
test_invalid_value("justify-content", "flow-start safe");
|
|
test_invalid_value("justify-content", "last baseline");
|
|
test_invalid_value("justify-content", "last");
|
|
test_invalid_value("justify-content", "legacy center");
|
|
test_invalid_value("justify-content", "legacy left");
|
|
test_invalid_value("justify-content", "legacy");
|
|
test_invalid_value("justify-content", "normal baseline");
|
|
test_invalid_value("justify-content", "right legacy");
|
|
test_invalid_value("justify-content", "safe self-end");
|
|
test_invalid_value("justify-content", "safe");
|
|
test_invalid_value("justify-content", "self-end unsafe");
|
|
test_invalid_value("justify-content", "self-start");
|
|
test_invalid_value("justify-content", "space-between flow-end");
|
|
test_invalid_value("justify-content", "start safe");
|
|
test_invalid_value("justify-content", "unsafe");
|
|
</script>
|
|
</body>
|
|
</html>
|