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:{ background-color: green; }; |
| 7 --width: {width:100px} ; |
| 8 --height:{height: 200px} ; |
| 9 @apply --background-color ; |
| 10 @apply/**/--width; |
| 11 @apply --height; |
| 12 } |
| 13 </style> |
| 14 <div id=e> |
| 15 </div> |
| 16 <script> |
| 17 test(function(){ |
| 18 assert_equals(getComputedStyle(e).backgroundColor, "rgb(0, 128, 0)"); |
| 19 assert_equals(getComputedStyle(e).width, "100px"); |
| 20 assert_equals(getComputedStyle(e).height, "200px"); |
| 21 }, "Whitespace is optional in @apply and custom property sets"); |
| 22 </script> |
OLD | NEW |