| OLD | NEW |
| 1 <script src="../resources/testharness.js"></script> | 1 <script src="../../resources/testharness.js"></script> |
| 2 <script src="../resources/testharnessreport.js"></script> | 2 <script src="../../resources/testharnessreport.js"></script> |
| 3 <body></body> | 3 <body></body> |
| 4 <script> | 4 <script> |
| 5 function createTarget() { | 5 function createTarget() { |
| 6 return document.body.appendChild(document.createElement('div')); | 6 return document.body.appendChild(document.createElement('div')); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function setTaintedValue(target, property, value) { | 9 function setTaintedValue(target, property, value) { |
| 10 target.animate({[property]: value}, {fill: 'forwards'}); | 10 target.animate({[property]: value}, {fill: 'forwards'}); |
| 11 assert_equals(getComputedStyle(target).getPropertyValue(property), value, | 11 assert_equals(getComputedStyle(target).getPropertyValue(property), value, |
| 12 `Tainted value ${value} set on ${property} by animation`); | 12 `Tainted value ${value} set on ${property} by animation`); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 test(() => { | 62 test(() => { |
| 63 var target = createTarget(); | 63 var target = createTarget(); |
| 64 setTaintedValue(target, '--tainted', 'tainted'); | 64 setTaintedValue(target, '--tainted', 'tainted'); |
| 65 testTaintedSubstitution(target, 'var(--unknown, var(--tainted))', { | 65 testTaintedSubstitution(target, 'var(--unknown, var(--tainted))', { |
| 66 animationName: 'none', | 66 animationName: 'none', |
| 67 customProperty: ' tainted', | 67 customProperty: ' tainted', |
| 68 }); | 68 }); |
| 69 }, 'Animation tainted fallback values are omitted in CSS property animation-name
'); | 69 }, 'Animation tainted fallback values are omitted in CSS property animation-name
'); |
| 70 </script> | 70 </script> |
| OLD | NEW |