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
44 lines
1.8 KiB
HTML
44 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Box Alignment Level 3: parsing justify-self with valid values</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-self">
|
|
<meta name="assert" content="justify-self supports the full grammar 'auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-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-self", "auto");
|
|
test_valid_value("justify-self", "normal");
|
|
test_valid_value("justify-self", "stretch");
|
|
|
|
// <baseline-position> = [ first | last ]? baseline
|
|
test_valid_value("justify-self", "baseline");
|
|
test_valid_value("justify-self", "first baseline", "baseline");
|
|
test_valid_value("justify-self", "last baseline");
|
|
|
|
// <overflow-position>? [ <self-position> | left | right ]
|
|
// <overflow-position> = unsafe | safe
|
|
// <self-position> = center | start | end | self-start | self-end | flex-start | flex-end | flow-start | flow-end
|
|
test_valid_value("justify-self", "center");
|
|
test_valid_value("justify-self", "start");
|
|
test_valid_value("justify-self", "end");
|
|
test_valid_value("justify-self", "self-start");
|
|
test_valid_value("justify-self", "self-end");
|
|
test_valid_value("justify-self", "flex-start");
|
|
test_valid_value("justify-self", "flex-end");
|
|
test_valid_value("justify-self", "flow-start");
|
|
test_valid_value("justify-self", "flow-end");
|
|
test_valid_value("justify-self", "safe flow-start");
|
|
test_valid_value("justify-self", "unsafe flow-end");
|
|
test_valid_value("justify-self", "unsafe center");
|
|
test_valid_value("justify-self", "safe self-end");
|
|
test_valid_value("justify-self", "left");
|
|
test_valid_value("justify-self", "unsafe right");
|
|
</script>
|
|
</body>
|
|
</html>
|