diff options
author | bors-servo <servo-ops@mozilla.com> | 2020-06-09 23:51:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 23:51:15 -0400 |
commit | 1a561242cfca27b51d31bf63509cbc95044b69d4 (patch) | |
tree | d90b9d6b03ca1b4c218b3aa1163fad84ee311cad /tests/wpt/web-platform-tests/css/css-properties-values-api/at-property-cssom.html | |
parent | 0b0ea17dca72d867b56ddf518240e25f30d93f3e (diff) | |
parent | 4c6f01b60a3093071a9b39cb92db303d280d28dc (diff) | |
download | servo-1a561242cfca27b51d31bf63509cbc95044b69d4.tar.gz servo-1a561242cfca27b51d31bf63509cbc95044b69d4.zip |
Auto merge of #26831 - servo-wpt-sync:wpt_update_09-06-2020, r=jdm
Sync WPT with upstream (09-06-2020)
Automated downstream sync of changes from upstream as of 09-06-2020.
[no-wpt-sync]
r? @servo-wpt-sync
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-properties-values-api/at-property-cssom.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-properties-values-api/at-property-cssom.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-properties-values-api/at-property-cssom.html b/tests/wpt/web-platform-tests/css/css-properties-values-api/at-property-cssom.html index 5a0ef9f5d00..46671fedd4e 100644 --- a/tests/wpt/web-platform-tests/css/css-properties-values-api/at-property-cssom.html +++ b/tests/wpt/web-platform-tests/css/css-properties-values-api/at-property-cssom.html @@ -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'); |