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

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

Issue 2621553002: Properly test unset behavior of invalid registered property values (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 | no next file » | 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 811846505c1585944be0e241ae841a15e4cc0d04..c704405cfeac6cc903ebcb12049d8004215d9f98 100644
--- a/third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html
+++ b/third_party/WebKit/LayoutTests/custom-properties/registered-property-cssom.html
@@ -8,11 +8,14 @@
--color: red;
}
#outer {
+ --length: 77px;
--color: blue;
}
</style>
-<div id=inner></div>
+<div id=outer>
+ <div id=inner></div>
+</div>
<script>
var computedStyle = getComputedStyle(inner);
@@ -40,7 +43,7 @@ test(function() {
assert_equals(inlineStyle.getPropertyValue('--length'), '5');
assert_equals(inlineStyle.getPropertyValue('--color'), 'hello');
assert_equals(computedStyle.getPropertyValue('--length'), '0px');
- assert_equals(computedStyle.getPropertyValue('--color'), 'white');
+ assert_equals(computedStyle.getPropertyValue('--color'), 'blue');
}, "Formerly valid values are still readable from inline styles but are computed as the unset value");
test(function() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698