| Index: third_party/WebKit/LayoutTests/fast/css/variables/accessing-variable-as-named-property.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/accessing-variable-as-named-property.html b/third_party/WebKit/LayoutTests/fast/css/variables/accessing-variable-as-named-property.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8cdeea5ced5ed23c1a879ccc618d628adde5baac
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/variables/accessing-variable-as-named-property.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<meta charset="UTF-8">
|
| +
|
| +<div id="div"></div>
|
| +
|
| +<script>
|
| +test(function() {
|
| + assert_equals(div.style["--foo"], undefined);
|
| + div.style = "--foo: 10px";
|
| + assert_equals(div.style["--foo"], undefined);
|
| + div.style["--foo"] = "20px";
|
| + assert_equals(div.style["--foo"], "20px");
|
| + assert_equals(div.style.getPropertyValue("--foo"), " 10px");
|
| +}, "Custom properties can't be accessed as named properties on style object");
|
| +</script>
|
|
|