mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Automatic update from web-platform-tests CSS: parse-content accepts <baseline-position> When parse-content is a <baseline-position> value like last baseline, align-content is the <baseline-position> and justify-content is start. https://drafts.csswg.org/css-align-3/#place-content We add WPTs for serialization of all the place-* shorthands. Bug: 983753 Change-Id: I332c75b631efd29e398ba42985529b664c828b04 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1698173 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#677928} -- wpt-commits: 00d52d80773a8d81dbda7535b01fae31233fa19d wpt-pr: 17818
39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Box Alignment Level 3: parsing place-items with valid values</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-items">
|
|
<meta name="assert" content="place-items supports the full grammar '<align-items> <justify-items>?'.">
|
|
<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("place-items", "normal");
|
|
test_valid_value("place-items", "stretch stretch", "stretch");
|
|
|
|
test_valid_value("place-items", "first baseline", "baseline");
|
|
test_valid_value("place-items", "last baseline last baseline", "last baseline");
|
|
|
|
test_valid_value("place-items", "center");
|
|
test_valid_value("place-items", "end end", "end");
|
|
test_valid_value("place-items", "self-start");
|
|
test_valid_value("place-items", "flex-end");
|
|
test_valid_value("place-items", "unsafe center unsafe center", "unsafe center");
|
|
test_valid_value("place-items", "safe self-end");
|
|
|
|
test_valid_value("place-items", "stretch baseline");
|
|
test_valid_value("place-items", "last baseline center");
|
|
test_valid_value("place-items", "safe self-end normal");
|
|
|
|
test_valid_value("place-items", "normal right");
|
|
test_valid_value("place-items", "baseline unsafe left");
|
|
|
|
test_valid_value("place-items", "flex-end legacy");
|
|
test_valid_value("place-items", "stretch legacy left");
|
|
test_valid_value("place-items", "first baseline right legacy", "baseline legacy right");
|
|
</script>
|
|
</body>
|
|
</html>
|