Properly test unset behavior of invalid registered property values

This patch fixes registered-property-cssom.html to properly test that
invalid registered property values are computed as unset. The test was
missing inherited values so the unset value was always resolving to the
initial value.

BUG=641877

Review-Url: https://codereview.chromium.org/2621553002
Cr-Commit-Position: refs/heads/master@{#442197}
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 8118465..c704405 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 @@
   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() {