Chromium Code Reviews| Index: LayoutTests/svg/custom/change-background-color.html |
| diff --git a/LayoutTests/svg/custom/change-background-color.html b/LayoutTests/svg/custom/change-background-color.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d788f2637415a688fe553fd93cec77515887b11e |
| --- /dev/null |
| +++ b/LayoutTests/svg/custom/change-background-color.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE HTML> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| +window.onload = function() { |
| + var svg = document.querySelector('svg'); |
| + setTimeout(function() { |
| + svg.style.backgroundColor = "green"; |
| + requestAnimationFrame(function() { |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + }); |
| + }, 0); |
|
pdr.
2014/03/31 16:51:32
Is this setTimeout needed? I think the rAF should
|
| +}; |
| +</script> |
| +<svg width="200px" height="100px" viewBox="0 0 100 100" |
| + style="background-color: red"> |
| +</svg> |