OLD | NEW |
---|---|
(Empty) | |
1 <svg width="400" height="400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()"> | |
2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></script > | |
fs
2016/01/07 11:38:46
You should also include the resources/ahem.js scri
| |
3 <script> | |
4 <![CDATA[ | |
fs
2016/01/07 11:38:45
(If you make these tests HTML w/ inline SVG instea
| |
5 function repaintTest() { | |
6 var text = document.getElementsByTagName("text")[0]; | |
7 text.style.transform = 'translate(100px, 0px)'; | |
8 } | |
9 ]]> | |
10 </script> | |
11 <text x="10" y="90" font-size="100" font-family="Ahem">Test</text> | |
fs
2016/01/07 11:38:45
IIRC, the "Ahem" font has an ascent of 800 (of 100
| |
12 </svg> | |
OLD | NEW |