OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src=../../fast/repaint/resources/text-based-repaint.js></script> | 2 <script src=../../fast/repaint/resources/text-based-repaint.js></script> |
3 <script src=../../resources/ahem.js></script> | 3 <script src=../../resources/ahem.js></script> |
4 <svg> | 4 <svg> |
5 <pattern id="pat" patternUnits="userSpaceOnUse" width="200" height="200"> | 5 <pattern id="pat" patternUnits="userSpaceOnUse" width="200" height="200"> |
6 <rect width="200" height="100" fill="red"/> | 6 <rect width="200" height="100" fill="red"/> |
7 <rect y="100" width="200" height="100" fill="green"/> | 7 <rect y="100" width="200" height="100" fill="green"/> |
8 </pattern> | 8 </pattern> |
9 <text y="80" fill="url(#pat)" font-size="100" font-family="Ahem">X<tspan fill=
"green">Y</tspan>Z</text> | 9 <text y="80" fill="url(#pat)" font-size="100" font-family="Ahem">X<tspan fill=
"green">Y</tspan>Z</text> |
10 </svg> | 10 </svg> |
11 <script> | 11 <script> |
12 function repaintTest() { | 12 function repaintTest() { |
13 var pattern = document.querySelector('pattern'); | 13 var pattern = document.querySelector('pattern'); |
14 pattern.setAttribute('y', 100); | 14 pattern.setAttribute('y', 100); |
15 } | 15 } |
16 onload = runRepaintTest; | 16 onload = runRepaintAndPixelTest; |
17 </script> | 17 </script> |
OLD | NEW |