Update web-platform-tests to revision a5cb9597799c5f9bf0a809006161a0c50055828f

This commit is contained in:
WPT Sync Bot 2020-06-09 08:20:32 +00:00
parent 8b56b7a3c2
commit 2a42c14544
646 changed files with 93200 additions and 2587 deletions

View file

@ -55,8 +55,8 @@
<script>
function find_at_property_rule(name) {
for (let rule of document.styleSheets[0].cssRules) {
if (rule.type != CSSRule.PROPERTY_RULE)
for (let rule of document.styleSheets[0].cssRules) {
if (rule.constructor.name != "CSSPropertyRule")
continue;
if (rule.name == name)
return rule;
@ -120,6 +120,13 @@ test_css_text('--syntax-only', '@property --syntax-only { syntax: "<color> | non
test_css_text('--inherits-only', '@property --inherits-only { inherits: true; }');
test_css_text('--initial-value-only', '@property --initial-value-only { initial-value: red; }');
// CSSRule.type
test(() => {
let rule = find_at_property_rule('--valid');
assert_equals(rule.type, 0);
}, 'CSSRule.type returns 0');
// CSSPropertyRule.name
test_name('--valid');