Update web-platform-tests to revision 9a4d479ed1347eb9184abc70d628a6da2297657a

This commit is contained in:
WPT Sync Bot 2019-07-17 10:25:43 +00:00
parent b6cc0f60a9
commit effeb278b6
120 changed files with 3731 additions and 298 deletions

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing place-content with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-content">
<meta name="assert" content="place-content supports only the grammar '<align-content> <justify-content>?'.">
<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("place-content", "auto");
test_invalid_value("place-content", "self-end unsafe");
test_invalid_value("place-content", "self-start");
test_invalid_value("place-content", "left");
test_invalid_value("place-content", "unsafe right");
test_invalid_value("place-content", "left normal");
test_invalid_value("place-content", "unsafe right stretch");
test_invalid_value("place-content", "normal flex-start baseline");
test_invalid_value("place-content", "first baseline first baseline");
test_invalid_value("place-content", "baseline safe");
</script>
</body>
</html>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing place-content with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-content">
<meta name="assert" content="place-content supports the full grammar '<align-content> <justify-content>?'.">
<meta name="assert" content="<baseline-position> and <baseline-position> start are equivalent.">
<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-content", "normal normal", "normal");
test_valid_value("place-content", "first baseline", "baseline start");
test_valid_value("place-content", "baseline", "baseline start");
test_valid_value("place-content", "first baseline start", "baseline start");
test_valid_value("place-content", "last baseline", "last baseline start");
test_valid_value("place-content", "first baseline stretch", "baseline stretch");
test_valid_value("place-content", "last baseline flex-start");
test_valid_value("place-content", "baseline stretch");
test_valid_value("place-content", "space-between");
test_valid_value("place-content", "space-around");
test_valid_value("place-content", "space-evenly");
test_valid_value("place-content", "stretch");
test_valid_value("place-content", "center");
test_valid_value("place-content", "end");
test_valid_value("place-content", "flex-start flex-start", "flex-start");
test_valid_value("place-content", "unsafe end unsafe end", "unsafe end");
test_valid_value("place-content", "safe flex-start");
test_valid_value("place-content", "normal stretch");
test_valid_value("place-content", "baseline space-around");
test_valid_value("place-content", "space-evenly unsafe end");
test_valid_value("place-content", "center normal");
test_valid_value("place-content", "normal right");
test_valid_value("place-content", "baseline unsafe left");
</script>
</body>
</html>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing place-items with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-items">
<meta name="assert" content="place-items supports only the 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_invalid_value("place-items", "auto");
test_invalid_value("place-items", "space-around");
test_invalid_value("place-items", "space-between");
test_invalid_value("place-items", "space-evenly");
test_invalid_value("place-items", "left");
test_invalid_value("place-items", "unsafe right");
test_invalid_value("place-items", "left baseline");
test_invalid_value("place-items", "unsafe right flex-end");
test_invalid_value("place-items", "legacy center");
test_invalid_value("place-items", "legacy left");
test_invalid_value("place-items", "legacy");
test_invalid_value("place-items", "legacy right flex-start");
test_invalid_value("place-items", "legacy normal");
test_invalid_value("place-items", "normal flex-start baseline");
test_invalid_value("place-items", "baseline safe");
</script>
</body>
</html>

View file

@ -0,0 +1,39 @@
<!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>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing place-self with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-place-self">
<meta name="assert" content="place-self supports only the grammar '<align-self> <justify-self>?'.">
<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("place-self", "space-around");
test_invalid_value("place-self", "space-between");
test_invalid_value("place-self", "space-evenly");
test_invalid_value("place-self", "right");
test_invalid_value("place-self", "unsafe left");
test_invalid_value("place-self", "right start");
test_invalid_value("place-self", "unsafe left stretch");
test_invalid_value("place-self", "normal flex-start baseline");
test_invalid_value("place-self", "baseline safe");
</script>
</body>
</html>

View file

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