Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-referencing-animation-crash.html
blob7fd17f2dcafa072115683f9c1c6932c64610a16d
1 <!DOCTYPE html>
2 <svg>
3 <set id='cssPropAnim' xlink:href='#cssPropAnim' attributeName='fill' to='gold'></set>
4 <rect id='someRect'><animate></animate></rect>
5 <use clip-path='url(#someRect)' xlink:href='#cssPropAnim'></use>
6 </svg>
7 <p>PASS if no crash in debug.</p>
8 <script>
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
13 function completionTrigger() {
14 var set = document.createElementNS('http://www.w3.org/2000/svg', 'set');
15 set.setAttribute('attributeName', 'x');
16 set.setAttribute('to', '0');
17 set.onbegin = function() {
18 if (window.testRunner)
19 testRunner.notifyDone();
21 return set;
23 var root = document.getElementsByTagName('svg')[0];
24 root.pauseAnimations();
26 onload = function () {
27 requestAnimationFrame(function() {
28 setTimeout(function() {
29 root.style.zoom = 2;
30 root.appendChild(document.getElementById('someRect').cloneNode(true));
31 root.appendChild(completionTrigger());
32 }, 0);
33 });
35 </script>