OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" viewBox="-100 -100 800 600" onload="runRepaintTest();"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" viewBox="-100 -100 800 600" onload="runRepaintAndPixelTest();"> |
2 <!-- | 2 <!-- |
3 Test for https://bugs.webkit.org/show_bug.cgi?id=76527. | 3 Test for https://bugs.webkit.org/show_bug.cgi?id=76527. |
4 Only two green circles should be visible. | 4 Only two green circles should be visible. |
5 --> | 5 --> |
6 <script xlink:href="../../fast/repaint/resources/repaint.js" type="text/javasc
ript"></script> | 6 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" type="
text/javascript"></script> |
7 <defs> | 7 <defs> |
8 <mask id="mask"> | 8 <mask id="mask"> |
9 <circle cx="100" r="50" fill="white"/> | 9 <circle cx="100" r="50" fill="white"/> |
10 </mask> | 10 </mask> |
11 | 11 |
12 <clipPath id="clip"> | 12 <clipPath id="clip"> |
13 <circle cy="100" r="50"/> | 13 <circle cy="100" r="50"/> |
14 <!--Two clip shapes are needed to avoid triggering pathOnlyClipping --> | 14 <!--Two clip shapes are needed to avoid triggering pathOnlyClipping --> |
15 <circle cx="0" cy="0" r="0"/> | 15 <circle cx="0" cy="0" r="0"/> |
16 </clipPath> | 16 </clipPath> |
(...skipping 14 matching lines...) Expand all Loading... |
31 document.getElementById(target).setAttribute('transform', 'rotate(' + an
gle + ')'); | 31 document.getElementById(target).setAttribute('transform', 'rotate(' + an
gle + ')'); |
32 } | 32 } |
33 | 33 |
34 function repaintTest() { | 34 function repaintTest() { |
35 rotate("masker", 90); | 35 rotate("masker", 90); |
36 rotate("clipper", 90); | 36 rotate("clipper", 90); |
37 } | 37 } |
38 </script> | 38 </script> |
39 </svg> | 39 </svg> |
40 | 40 |
OLD | NEW |