OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"> |
| 4 <rect width="100" height="100" color="green" fill="black"> |
| 5 <animate attributeName="fill" from="currentColor" to="currentColor" begin="0
s" dur="0.01s" fill="freeze" additive="sum" onend="checkResult()"/> |
| 6 </rect> |
| 7 </svg> |
| 8 <script> |
| 9 var jsTestIsAsync = true; |
| 10 |
| 11 function checkResult() { |
| 12 shouldBe("getComputedStyle(document.querySelector('rect')).fill", "'rgb(0, 128
, 0)'"); |
| 13 finishJSTest(); |
| 14 } |
| 15 </script> |
OLD | NEW |