| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 @keyframes test { |
| 6 from { --x: { background-color: green; }; } |
| 7 to { --x: { background-color: lime; }; } |
| 8 } |
| 9 div { |
| 10 --x: { |
| 11 animation: test 10s linear; |
| 12 background-color: red; |
| 13 }; |
| 14 @apply --x; |
| 15 } |
| 16 #targetA { |
| 17 animation-delay: -2.5s; |
| 18 } |
| 19 #targetB { |
| 20 animation-delay: -7.5s; |
| 21 } |
| 22 </style> |
| 23 <div id="targetA"></div> |
| 24 <div id="targetB"></div> |
| 25 <script> |
| 26 test(() => { |
| 27 assert_equals(getComputedStyle(targetA).backgroundColor, 'rgb(0, 128, 0)'); |
| 28 assert_equals(getComputedStyle(targetB).backgroundColor, 'rgb(0, 255, 0)'); |
| 29 }, 'CSS Animations on custom properties should be reflected in @apply references
'); |
| 30 </script> |
| OLD | NEW |