OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 div { |
| 6 width: 100px; |
| 7 height: 100px; |
| 8 --foo: { |
| 9 background-color: green; |
| 10 } |
| 11 } |
| 12 </style> |
| 13 <div id=e1 style="@apply --foo"></div> |
| 14 <div id=e2 style="@apply --foo; height: 100px"></div> |
| 15 <script> |
| 16 test(function(){ |
| 17 assert_equals(getComputedStyle(e1).backgroundColor, "rgb(0, 128, 0)"); |
| 18 assert_equals(getComputedStyle(e2).backgroundColor, "rgb(0, 128, 0)"); |
| 19 assert_equals(getComputedStyle(e2).height, "100px"); |
| 20 }, "@apply should work when specified inside inline styles"); |
| 21 </script> |
OLD | NEW |