mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision b'2d1ad05908ee5447fdfa70eed9757273aa5da367'
This commit is contained in:
parent
7809bb7cba
commit
84de92ecaf
83 changed files with 1324 additions and 779 deletions
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Rhythm: block-step-insert computed values</title>
|
||||
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-insert">
|
||||
<meta name="assert" content="Checking computed values for block-step-insert">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
<style>
|
||||
#target {
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("block-step-insert", "margin");
|
||||
test_computed_value("block-step-insert", "padding");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Rhythm: block-step-insert invalid values</title>
|
||||
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-insert">
|
||||
<meta name="assert" content="Invalid values for block-step-insert should not be parsed">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
<style>
|
||||
#target {
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_invalid_value("block-step-insert", "auto");
|
||||
test_invalid_value("block-step-insert", "-1px");
|
||||
test_invalid_value("block-step-insert", "min-content");
|
||||
test_invalid_value("block-step-insert", "10%");
|
||||
test_invalid_value("block-step-insert", "20");
|
||||
test_invalid_value("block-step-insert", "none");
|
||||
test_invalid_value("block-step-insert", "border-box");
|
||||
test_invalid_value('block-step-insert', "margin-box");
|
||||
test_invalid_value("block-step-insert", "margin padding");
|
||||
test_invalid_value("block-step-insert", "padding margin");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Rhythm: block-step-insert valid values</title>
|
||||
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-insert">
|
||||
<meta name="assert" content="Parsing valid values for block-step-insert property">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
<style>
|
||||
#target {
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_valid_value("block-step-insert", "margin");
|
||||
test_valid_value("block-step-insert", "padding");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Rhythm: block-step-size computed values</title>
|
||||
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-size">
|
||||
<meta name="assert" content="Checking computed values for block-step-size">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
<style>
|
||||
#target {
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("block-step-size", "0px");
|
||||
test_computed_value("block-step-size", "none");
|
||||
test_computed_value("block-step-size", "100px");
|
||||
test_computed_value("block-step-size", "2em", "80px");
|
||||
test_computed_value("block-step-size", "calc(10px + 0.5em)", "30px");
|
||||
test_computed_value("block-step-size", "calc(10px - 0.5em)", "0px");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Rhythm: block-step-size invalid values</title>
|
||||
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-size">
|
||||
<meta name="assert" content="Invalid values for block-step-size should not be parsed">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
<style>
|
||||
#target {
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_invalid_value("block-step-size", "auto");
|
||||
test_invalid_value("block-step-size", "-1px");
|
||||
test_invalid_value("block-step-size", "min-content");
|
||||
test_invalid_value("block-step-size", "10%");
|
||||
test_invalid_value("block-step-size", "20");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Rhythm: block-step-size valid values</title>
|
||||
<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-size">
|
||||
<meta name="assert" content="Parsing valid values for block-step-size properties">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
<style>
|
||||
#target {
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_valid_value("block-step-size", "1px");
|
||||
test_valid_value("block-step-size", "2em");
|
||||
test_valid_value("block-step-size", "0", "0px");
|
||||
test_valid_value("block-step-size", "none");
|
||||
test_valid_value("block-step-size", "calc(2em + 3ex)");
|
||||
test_valid_value("block-step-size", "1.2em");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue