OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 #e { |
| 6 background-color: green; |
| 7 width: 100px; |
| 8 height: 100px; |
| 9 |
| 10 --red: { red }; |
| 11 background-color: @apply --red; |
| 12 |
| 13 --border: 5px solid; |
| 14 border: var(--border) @apply --red; |
| 15 } |
| 16 </style> |
| 17 <div id=e> |
| 18 </div> |
| 19 <script> |
| 20 test(function(){ |
| 21 assert_equals(getComputedStyle(e).backgroundColor, "rgb(0, 128, 0)"); |
| 22 assert_equals(getComputedStyle(e).borderColor, "rgb(0, 0, 0)"); |
| 23 }, "Basic usage of @apply with non-shorthand properties"); |
| 24 </script> |
OLD | NEW |