mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 6fa9de7201cd41564d02c3edd62365aeb40e171b
This commit is contained in:
parent
60f1ffc5a7
commit
dc1f7ba3ec
124 changed files with 2052 additions and 849 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: getComputedStyle().alignContent</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-align-content">
|
||||
<meta name="assert" content="align-content computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("align-content", "normal");
|
||||
|
||||
test_computed_value("align-content", "baseline");
|
||||
test_computed_value("align-content", "last baseline");
|
||||
|
||||
test_computed_value("align-content", "space-between");
|
||||
test_computed_value("align-content", "space-around");
|
||||
test_computed_value("align-content", "space-evenly");
|
||||
test_computed_value("align-content", "stretch");
|
||||
|
||||
test_computed_value("align-content", "center");
|
||||
test_computed_value("align-content", "start");
|
||||
test_computed_value("align-content", "end");
|
||||
test_computed_value("align-content", "flex-start");
|
||||
test_computed_value("align-content", "flex-end");
|
||||
test_computed_value("align-content", "unsafe end");
|
||||
test_computed_value("align-content", "safe flex-start");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: getComputedStyle().alignItems</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-align-items">
|
||||
<meta name="assert" content="align-items computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("align-items", "normal");
|
||||
test_computed_value("align-items", "stretch");
|
||||
|
||||
test_computed_value("align-items", "baseline");
|
||||
test_computed_value("align-items", "last baseline");
|
||||
|
||||
test_computed_value("align-items", "center");
|
||||
test_computed_value("align-items", "start");
|
||||
test_computed_value("align-items", "end");
|
||||
test_computed_value("align-items", "self-start");
|
||||
test_computed_value("align-items", "self-end");
|
||||
test_computed_value("align-items", "flex-start");
|
||||
test_computed_value("align-items", "flex-end");
|
||||
test_computed_value("align-items", "unsafe center");
|
||||
test_computed_value("align-items", "safe self-end");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: getComputedStyle().alignSelf</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-align-self">
|
||||
<meta name="assert" content="align-self computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("align-self", "auto");
|
||||
test_computed_value("align-self", "normal");
|
||||
test_computed_value("align-self", "stretch");
|
||||
|
||||
test_computed_value("align-self", "baseline");
|
||||
test_computed_value("align-self", "last baseline");
|
||||
|
||||
test_computed_value("align-self", "center");
|
||||
test_computed_value("align-self", "start");
|
||||
test_computed_value("align-self", "end");
|
||||
test_computed_value("align-self", "self-start");
|
||||
test_computed_value("align-self", "self-end");
|
||||
test_computed_value("align-self", "flex-start");
|
||||
test_computed_value("align-self", "flex-end");
|
||||
test_computed_value("align-self", "unsafe center");
|
||||
test_computed_value("align-self", "safe self-end");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: getComputedStyle().justifyContent</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-content">
|
||||
<meta name="assert" content="justify-content computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("justify-content", "normal");
|
||||
|
||||
test_computed_value("justify-content", "space-between");
|
||||
test_computed_value("justify-content", "space-around");
|
||||
test_computed_value("justify-content", "space-evenly");
|
||||
test_computed_value("justify-content", "stretch");
|
||||
|
||||
test_computed_value("justify-content", "center");
|
||||
test_computed_value("justify-content", "start");
|
||||
test_computed_value("justify-content", "end");
|
||||
test_computed_value("justify-content", "flex-start");
|
||||
test_computed_value("justify-content", "flex-end");
|
||||
test_computed_value("justify-content", "unsafe end");
|
||||
test_computed_value("justify-content", "safe flex-start");
|
||||
test_computed_value("justify-content", "left");
|
||||
test_computed_value("justify-content", "unsafe right");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -3,7 +3,7 @@
|
|||
<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-justify-3/#propdef-justify-content">
|
||||
<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>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<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-justify-3/#propdef-justify-content">
|
||||
<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>
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: getComputedStyle().justifyItems</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-items">
|
||||
<meta name="assert" content="justify-items computed value is as specified.">
|
||||
<meta name="assert" content="justify-items legacy depends on inherited value.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="target"></div>
|
||||
</div>
|
||||
<script>
|
||||
test_computed_value("justify-items", "normal");
|
||||
test_computed_value("justify-items", "stretch");
|
||||
|
||||
test_computed_value("justify-items", "baseline");
|
||||
test_computed_value("justify-items", "last baseline");
|
||||
|
||||
test_computed_value("justify-items", "center");
|
||||
test_computed_value("justify-items", "start");
|
||||
test_computed_value("justify-items", "end");
|
||||
test_computed_value("justify-items", "self-start");
|
||||
test_computed_value("justify-items", "self-end");
|
||||
test_computed_value("justify-items", "flex-start");
|
||||
test_computed_value("justify-items", "flex-end");
|
||||
test_computed_value("justify-items", "unsafe center");
|
||||
test_computed_value("justify-items", "safe self-end");
|
||||
test_computed_value("justify-items", "right");
|
||||
test_computed_value("justify-items", "safe left");
|
||||
|
||||
test_computed_value("justify-items", "legacy", "normal");
|
||||
test_computed_value("justify-items", "legacy left");
|
||||
test_computed_value("justify-items", "legacy right");
|
||||
test_computed_value("justify-items", "legacy center");
|
||||
|
||||
test(() => {
|
||||
const container = document.getElementById('container');
|
||||
const target = document.getElementById('target');
|
||||
target.style.justifyItems = 'legacy';
|
||||
container.style.justifyItems = 'legacy left';
|
||||
assert_equals(getComputedStyle(target).justifyItems, 'legacy left');
|
||||
container.style.justifyItems = 'legacy right';
|
||||
assert_equals(getComputedStyle(target).justifyItems, 'legacy right');
|
||||
container.style.justifyItems = 'legacy center';
|
||||
assert_equals(getComputedStyle(target).justifyItems, 'legacy center');
|
||||
container.style.justifyItems = 'flex-end';
|
||||
assert_equals(getComputedStyle(target).justifyItems, 'normal');
|
||||
}, 'justify-items legacy depends on inherited value');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: parsing justify-items with invalid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-justify-3/#propdef-justify-items">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-items">
|
||||
<meta name="assert" content="justify-items supports only the grammar 'normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: parsing justify-items with valid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-justify-3/#propdef-justify-items">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-items">
|
||||
<meta name="assert" content="justify-items supports the full grammar 'normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: getComputedStyle().justifySelf</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-self">
|
||||
<meta name="assert" content="justify-self computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("justify-self", "auto");
|
||||
test_computed_value("justify-self", "normal");
|
||||
test_computed_value("justify-self", "stretch");
|
||||
|
||||
test_computed_value("justify-self", "baseline");
|
||||
test_computed_value("justify-self", "last baseline");
|
||||
|
||||
test_computed_value("justify-self", "center");
|
||||
test_computed_value("justify-self", "start");
|
||||
test_computed_value("justify-self", "end");
|
||||
test_computed_value("justify-self", "self-start");
|
||||
test_computed_value("justify-self", "self-end");
|
||||
test_computed_value("justify-self", "flex-start");
|
||||
test_computed_value("justify-self", "flex-end");
|
||||
test_computed_value("justify-self", "unsafe center");
|
||||
test_computed_value("justify-self", "safe self-end");
|
||||
test_computed_value("justify-self", "left");
|
||||
test_computed_value("justify-self", "unsafe right");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Box Alignment Level 3: parsing justify-self with invalid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-justify-3/#propdef-justify-self">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-self">
|
||||
<meta name="assert" content="justify-self supports only the grammar 'auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<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-justify-3/#propdef-justify-self">
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue