Index: third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-invalid-syntax.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-invalid-syntax.html b/third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-invalid-syntax.html |
index 1cbf1e4f9c5be3442dd886fb2f24a46bd56e015b..a578ce416c67d06c5f7bbcf1eba306fa50c8d7f7 100644 |
--- a/third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-invalid-syntax.html |
+++ b/third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-invalid-syntax.html |
@@ -24,6 +24,12 @@ |
--red2: { background-color: red; } bla ; |
@apply --red2; |
+ --var1: @apply; |
+ --var2: @apply foo; |
+ --var3: @apply --red :/ ; |
+ --var4: @apply --red @apply --red; |
+ --var5: @apply --red {; |
+ |
width: 100px; |
height: 100px; |
@@ -43,5 +49,10 @@ |
<script> |
test(function(){ |
assert_equals(getComputedStyle(e).backgroundColor, "rgb(0, 128, 0)"); |
+ assert_equals(getComputedStyle(e).getPropertyValue("--var1"), ""); |
+ assert_equals(getComputedStyle(e).getPropertyValue("--var2"), ""); |
+ assert_equals(getComputedStyle(e).getPropertyValue("--var3"), ""); |
+ assert_equals(getComputedStyle(e).getPropertyValue("--var4"), ""); |
+ assert_equals(getComputedStyle(e).getPropertyValue("--var5"), ""); |
}, "Tests various invalid @apply rules get rejected"); |
</script> |