Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'

This commit is contained in:
WPT Sync Bot 2022-01-20 04:38:55 +00:00 committed by cybai
parent 4401622eb1
commit b77ad115f6
16832 changed files with 270819 additions and 87621 deletions

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text: getComputedStyle().hyphenateCharacter</title>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<meta name="assert" content="hyphenate-character 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("hyphenate-character", "auto");
test_computed_value("hyphenate-character", "\"=\"");
test_computed_value("hyphenate-character", "\"/-/\"");
test_computed_value("hyphenate-character", "\"\\1400\"", "\"\"");
test_computed_value("hyphenate-character", "\"\"");
</script>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text Module Test: parsing hyphenate-character with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<meta name="assert" content="hyphenate-character supports only the grammar 'none | manual | auto'.">
<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("hyphenate-character", "normal");
test_invalid_value("hyphenate-character", "none");
test_invalid_value("hyphenate-character", "auto auto");
test_invalid_value("hyphenate-character", "\"-\" \"=\"");
test_invalid_value("hyphenate-character", "1400");
test_invalid_value("hyphenate-character", "U+1400");
</script>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text Module Test: parsing hyphenate-character with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<meta name="assert" content="hyphens supports the full grammar 'auto | &lt;string&gt;'.">
<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("hyphenate-character", "auto");
test_valid_value("hyphenate-character", "\"=\"");
test_valid_value("hyphenate-character", "\"/-/\"");
test_valid_value("hyphenate-character", "\"\\1400\"", "\"\"");
test_valid_value("hyphenate-character", "\"\"");
</script>
</body>
</html>