Index: third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html |
diff --git a/third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html b/third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html |
index c704405cfeac6cc903ebcb12049d8004215d9f98..de03c5312531db72afb848cf5a1d2fd566e6267d 100644 |
--- a/third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html |
+++ b/third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html |
@@ -67,6 +67,8 @@ test(function() { |
assert_equals(computedStyle.getPropertyValue('--length'), '10px'); |
sheetStyle.setProperty('--length', '20px'); |
assert_equals(computedStyle.getPropertyValue('--length'), '20px'); |
+ sheetStyle.setProperty('--length', 'initial'); |
+ assert_equals(computedStyle.getPropertyValue('--length'), '0px'); |
}, "Stylesheets can be modified by CSSOM"); |
test(function() { |
@@ -76,5 +78,8 @@ test(function() { |
assert_equals(inlineStyle.getPropertyValue('--color'), 'pink'); |
assert_equals(computedStyle.getPropertyValue('--length'), '30px'); |
assert_equals(computedStyle.getPropertyValue('--color'), 'pink'); |
+ inlineStyle.setProperty('--color', 'inherit'); |
+ assert_equals(inlineStyle.getPropertyValue('--color'), 'inherit'); |
+ assert_equals(computedStyle.getPropertyValue('--color'), 'blue'); |
}, "Valid values can be set on inline styles"); |
</script> |