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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/variables/inherit-in-inline-style.html

Issue 2188343002: Fix serialization of css-wide keywords in custom properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 5 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/LayoutTests/fast/css/variables/inherit-in-inline-style-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/variables/inherit-in-inline-style.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/inherit-in-inline-style.html b/third_party/WebKit/LayoutTests/fast/css/variables/inherit-in-inline-style.html
index d36c85f3ef2a2fb04d1d110c3d7d5e6da96a4e54..fd276a23a34da15cac1a01f654351bf337936212 100644
--- a/third_party/WebKit/LayoutTests/fast/css/variables/inherit-in-inline-style.html
+++ b/third_party/WebKit/LayoutTests/fast/css/variables/inherit-in-inline-style.html
@@ -21,15 +21,16 @@
test(function() {
assert_equals(getComputedStyle(container).getPropertyValue("--a"), " green");
assert_equals(getComputedStyle(a).getPropertyValue("--a"), " green");
- assert_equals(a.style.getPropertyValue("--a"), " inherit");
+ assert_equals(a.style.getPropertyValue("--a"), "inherit");
+ assert_equals(a.style.cssText, "--a: inherit;");
}, 'The special inherit value can be read from inline style.');
test(function() {
a.style.setProperty("--a", "inherit");
- assert_equals(a.style.getPropertyValue("--a"), " inherit");
+ assert_equals(a.style.getPropertyValue("--a"), "inherit");
}, 'The special inherit value can be read after setting.')
test(function() {
- assert_equals(document.styleSheets[0].rules[1].style.getPropertyValue("--a"), " inherit");
+ assert_equals(document.styleSheets[0].rules[1].style.getPropertyValue("--a"), "inherit");
}, 'The special inherit value can be read from a declared rule.')
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/variables/inherit-in-inline-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698