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