Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html

Issue 2624213004: Fix setting css-wide keywords on registered custom properties (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698