Update web-platform-tests to revision 63459a30a61cda53c8c8ab4dc645b142cd2f85ea

This commit is contained in:
WPT Sync Bot 2019-07-16 10:26:01 +00:00
parent 005320c08c
commit 40ef4e9705
82 changed files with 986 additions and 154 deletions

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: getComputedStyle().alignmentBaseline</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#alignment-baseline-property">
<link rel="help" href="https://www.w3.org/TR/SVG11/text.html#AlignmentBaselineProperty">
<meta name="assert" content="alignment-baseline 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("alignment-baseline", "baseline");
test_computed_value("alignment-baseline", "text-bottom");
test_computed_value("alignment-baseline", "alphabetic");
test_computed_value("alignment-baseline", "ideographic");
test_computed_value("alignment-baseline", "middle");
test_computed_value("alignment-baseline", "central");
test_computed_value("alignment-baseline", "mathematical");
test_computed_value("alignment-baseline", "text-top");
test_computed_value("alignment-baseline", "bottom");
test_computed_value("alignment-baseline", "center");
test_computed_value("alignment-baseline", "top");
</script>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: parsing alignment-baseline with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#alignment-baseline-property">
<meta name="assert" content="alignment-baseline supports only the grammar 'baseline | text-bottom | alphabetic | ideographic | middle | central | mathematical | text-top | bottom | center | top'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
// alignment-baseline 'auto' was valid in SVG 1.1
// https://www.w3.org/TR/SVG11/text.html#AlignmentBaselineProperty
test_invalid_value("alignment-baseline", "auto");
test_invalid_value("alignment-baseline", "none");
test_invalid_value("alignment-baseline", "baseline text-bottom");
</script>
</body>
</html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: parsing alignment-baseline with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#alignment-baseline-property">
<meta name="assert" content="alignment-baseline supports the full grammar 'baseline | text-bottom | alphabetic | ideographic | middle | central | mathematical | text-top | bottom | center | top'.">
<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("alignment-baseline", "baseline");
test_valid_value("alignment-baseline", "text-bottom");
test_valid_value("alignment-baseline", "alphabetic");
test_valid_value("alignment-baseline", "ideographic");
test_valid_value("alignment-baseline", "middle");
test_valid_value("alignment-baseline", "central");
test_valid_value("alignment-baseline", "mathematical");
test_valid_value("alignment-baseline", "text-top");
test_valid_value("alignment-baseline", "bottom");
test_valid_value("alignment-baseline", "center");
test_valid_value("alignment-baseline", "top");
</script>
</body>
</html>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: getComputedStyle().baselineShift</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#baseline-shift-property">
<meta name="assert" content="baseline-shift computed value is the specified keyword or a computed length-percentage value.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<style>
#target {
font-size: 40px;
}
</style>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("baseline-shift", "-10px");
test_computed_value("baseline-shift", "20%");
test_computed_value("baseline-shift", "calc(10px - 0.5em)", "-10px");
test_computed_value("baseline-shift", "sub");
test_computed_value("baseline-shift", "super");
</script>
</body>
</html>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: parsing baseline-shift with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#baseline-shift-property">
<meta name="assert" content="baseline-shift supports only the grammar 'length-percentage | sub | super'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
// Valid in SVG 1.1. Accepted by Blink and WebKit.
// https://github.com/w3c/csswg-drafts/issues/3975
test_invalid_value("baseline-shift", "5");
test_invalid_value("baseline-shift", "-10px 20%");
test_invalid_value("baseline-shift", "calc(2em + 3ex), 0");
test_invalid_value("baseline-shift", "sub super");
test_invalid_value("baseline-shift", "20px sub");
</script>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: parsing baseline-shift with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#baseline-shift-property">
<meta name="assert" content="baseline-shift supports the full grammar 'length-percentage | sub | super'.">
<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("baseline-shift", "-10px");
test_valid_value("baseline-shift", "20%");
test_valid_value("baseline-shift", "calc(2em + 3ex)");
test_valid_value("baseline-shift", "0", "0px");
test_valid_value("baseline-shift", "sub");
test_valid_value("baseline-shift", "super");
</script>
</body>
</html>