A crash reproducible in Path::isEmpty() under RenderSVGShape::paint()
[WebKit-https.git] / LayoutTests / svg / custom / filter-update-different-root.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <style>
5     .dummy { }
6     .hide-second-path > .second-path { display: none; }
7   </style>
8 </head>
9 <body>
10     <svg style="background-color: #fff">
11         <g id="parent-group" class="hide-second-path">
12             <path id="id1" d="m 0,0 H 100 V 100 H 0 z" fill="red"/>
13             <path id="id2" d="m 0,0 H 100 V 100 H 0 z" fill="green" class="second-path"/>
14             <g id="child-group" filter="url(#nop-filter)">
15                 <path id="id3" d="m 100,0 H 200 V 100 H 100 z" fill="green"/>
16                 <path id="id4" d="m 100,0 H 200 V 100 H 100 z" fill="red" class="second-path"/>
17             </g>
18         </g>
19     </svg>
20     <svg>
21         <filter id="nop-filter">
22             <feOffset dx="0" dy="0"/>
23         </filter>
24     </svg>
25     <script>
26         if (window.testRunner)
27             testRunner.waitUntilDone();
28         setTimeout(function() {
29             document.styleSheets[0].deleteRule(0);
30             setTimeout(function() {
31                 document.getElementById('parent-group').removeAttribute('class');
32                 document.getElementById('child-group').setAttribute('class', 'hide-second-path');
33                 if (window.testRunner)
34                     testRunner.notifyDone();
35               }, 50);
36           }, 50);
37     </script>
38 </body>
39 </html>