OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <style> |
| 3 #target { |
| 4 font-size: 50px; |
| 5 text-decoration: underline solid black; |
| 6 transition: all 1s linear; |
| 7 } |
| 8 |
| 9 #target.final { text-decoration-color: red; } |
| 10 </style> |
| 11 <script src="../animations/resources/animation-test-helpers.js" type="text/javas
cript"></script> |
| 12 <script> |
| 13 const expectedValues = [ |
| 14 // [time, element-id, property, expected-value, tolerance] |
| 15 [0.5, 'target', 'text-decoration-color', [128, 0, 0], 64] |
| 16 ]; |
| 17 |
| 18 function setupTest() |
| 19 { |
| 20 document.getElementById('target').className = 'final'; |
| 21 } |
| 22 |
| 23 runTransitionTest(expectedValues, setupTest); |
| 24 </script> |
| 25 <span id="target">filler text</span> |
OLD | NEW |