| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- =====================================================================--> | 2 <!-- =====================================================================--> |
| 3 <!-- --> | 3 <!-- --> |
| 4 <!-- text-text-05-t.svg --> | 4 <!-- text-text-05-t.svg --> |
| 5 <!-- --> | 5 <!-- --> |
| 6 <!-- Tests that the viewer can handle the rotate attribute on the text --> | 6 <!-- Tests that the viewer can handle the rotate attribute on the text --> |
| 7 <!-- element. --> | 7 <!-- element. --> |
| 8 <!-- --> | 8 <!-- --> |
| 9 <!-- Author : Vincent Hardy, 06-Jan-2004 --><!D
OCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG
/1.1/DTD/svg11-tiny.dtd"> | 9 <!-- Author : Vincent Hardy, 06-Jan-2004 --><!D
OCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG
/1.1/DTD/svg11-tiny.dtd"> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 </SVGTestCase> | 28 </SVGTestCase> |
| 29 <title id="test-title">text-fontSize-01-t.svg</title> | 29 <title id="test-title">text-fontSize-01-t.svg</title> |
| 30 <desc id="test-desc"/> | 30 <desc id="test-desc"/> |
| 31 | 31 |
| 32 <script xlink:href="../resources/text-based-repaint.js"></script> | 32 <script xlink:href="../resources/text-based-repaint.js"></script> |
| 33 <!--======================================================================--
> | 33 <!--======================================================================--
> |
| 34 <!--Content of Test Case follows... =====================--
> | 34 <!--Content of Test Case follows... =====================--
> |
| 35 <!--======================================================================--
> | 35 <!--======================================================================--
> |
| 36 <g id="test-body-content" font-size="16"> | 36 <g id="test-body-content" font-size="16"> |
| 37 <defs> | 37 <defs> |
| 38 <font id="embeded" horiz-adv-x="224"> | 38 <font id="embedded" horiz-adv-x="224"> |
| 39 <font-face font-family="embeded" units-per-em="1000" panose-1="0 0 0 0 0 0 0 0 0
0" ascent="917" descent="-250" alphabetic="0"/> | 39 <font-face font-family="embedded" units-per-em="1000" panose-1="0 0 0 0 0 0 0 0
0 0" ascent="917" descent="-250" alphabetic="0"/> |
| 40 <missing-glyph horiz-adv-x="800" d="M50 0V800H750V0H50ZM700 50V7
50H100V50H700Z"/> | 40 <missing-glyph horiz-adv-x="800" d="M50 0V800H750V0H50ZM700 50V7
50H100V50H700Z"/> |
| 41 <glyph unicode="1" glyph-name="gl_1" horiz-adv-x="1500" d="M 0 0
L 250 0 L 250 250 L 0 250 Z"/> | 41 <glyph unicode="1" glyph-name="gl_1" horiz-adv-x="1500" d="M 0 0
L 250 0 L 250 250 L 0 250 Z"/> |
| 42 <glyph unicode="2" glyph-name="gl_2" horiz-adv-x="1500" d="M 0 0
L 500 0 L 500 500 L 0 500 Z"/> | 42 <glyph unicode="2" glyph-name="gl_2" horiz-adv-x="1500" d="M 0 0
L 500 0 L 500 500 L 0 500 Z"/> |
| 43 <glyph unicode="3" glyph-name="gl_3" horiz-adv-x="1500" d="M 0 0
L 750 0 L 750 750 L 0 750 Z"/> | 43 <glyph unicode="3" glyph-name="gl_3" horiz-adv-x="1500" d="M 0 0
L 750 0 L 750 750 L 0 750 Z"/> |
| 44 <glyph unicode="4" glyph-name="gl_4" horiz-adv-x="1500" d="M 0 0
L 1000 0 L 1000 1000 L 0 1000 Z"/> | 44 <glyph unicode="4" glyph-name="gl_4" horiz-adv-x="1500" d="M 0 0
L 1000 0 L 1000 1000 L 0 1000 Z"/> |
| 45 </font> | 45 </font> |
| 46 | 46 |
| 47 </defs> | 47 </defs> |
| 48 | 48 |
| 49 <defs> | 49 <defs> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 66 </g> | 66 </g> |
| 67 | 67 |
| 68 <g id="anchorStart" text-anchor="start" transform="translate(150
, 40)"> | 68 <g id="anchorStart" text-anchor="start" transform="translate(150
, 40)"> |
| 69 <text y="-17" text-anchor="middle">text-anchor</text> | 69 <text y="-17" text-anchor="middle">text-anchor</text> |
| 70 <text y="-3" text-anchor="middle">start</text> | 70 <text y="-3" text-anchor="middle">start</text> |
| 71 <line x1="0" y1="10" x2="0" y2="290" stroke="red"/> | 71 <line x1="0" y1="10" x2="0" y2="290" stroke="red"/> |
| 72 | 72 |
| 73 <g id="textContent"> | 73 <g id="textContent"> |
| 74 <!-- 1.x 1.y --> | 74 <!-- 1.x 1.y --> |
| 75 <use y="30" xlink:href="#marker" fill="#8888ff"/> | 75 <use y="30" xlink:href="#marker" fill="#8888ff"/> |
| 76 <text x="0" y="30" font-family="embeded" font-size="10">
1234</text> | 76 <text x="0" y="30" font-family="embedded" font-size="10"
>1234</text> |
| 77 | 77 |
| 78 <!-- 4.x 1.y : four text chunks --> | 78 <!-- 4.x 1.y : four text chunks --> |
| 79 <use x="10" y="60" xlink:href="#marker" fill="#8888ff"/> | 79 <use x="10" y="60" xlink:href="#marker" fill="#8888ff"/> |
| 80 <use x="20" y="60" xlink:href="#marker" fill="#8888ff"/> | 80 <use x="20" y="60" xlink:href="#marker" fill="#8888ff"/> |
| 81 <use x="30" y="60" xlink:href="#marker" fill="#8888ff"/> | 81 <use x="30" y="60" xlink:href="#marker" fill="#8888ff"/> |
| 82 <use x="40" y="60" xlink:href="#marker" fill="#8888ff"/> | 82 <use x="40" y="60" xlink:href="#marker" fill="#8888ff"/> |
| 83 <text x="10 20 30 40" y="60" font-family="embeded" font-
size="10">1234</text> | 83 <text x="10 20 30 40" y="60" font-family="embedded" font
-size="10">1234</text> |
| 84 | 84 |
| 85 <!-- 2.x 1.y : two text chunks --> | 85 <!-- 2.x 1.y : two text chunks --> |
| 86 <use x="10" y="90" xlink:href="#marker" fill="#8888ff"/> | 86 <use x="10" y="90" xlink:href="#marker" fill="#8888ff"/> |
| 87 <use x="60" y="90" xlink:href="#marker" fill="#8888ff"/> | 87 <use x="60" y="90" xlink:href="#marker" fill="#8888ff"/> |
| 88 <text x="10 60" y="90" font-family="embeded" font-size="
10">1234</text> | 88 <text x="10 60" y="90" font-family="embedded" font-size=
"10">1234</text> |
| 89 | 89 |
| 90 <!-- 1.x 4.y : four text chunks --> | 90 <!-- 1.x 4.y : four text chunks --> |
| 91 <g transform="translate(0, 120)"> | 91 <g transform="translate(0, 120)"> |
| 92 <use x="0" y="-10" xlink:href="#marker" fill="#8888f
f"/> | 92 <use x="0" y="-10" xlink:href="#marker" fill="#8888f
f"/> |
| 93 <use x="15" y="-5" xlink:href="#marker" fill="#8888f
f"/> | 93 <use x="15" y="-5" xlink:href="#marker" fill="#8888f
f"/> |
| 94 <use x="30" y="5" xlink:href="#marker" fill="#8888ff
"/> | 94 <use x="30" y="5" xlink:href="#marker" fill="#8888ff
"/> |
| 95 <use x="45" y="10" xlink:href="#marker" fill="#8888f
f"/> | 95 <use x="45" y="10" xlink:href="#marker" fill="#8888f
f"/> |
| 96 <text x="0" y="-10 -5 5 10" font-family="embeded" fo
nt-size="10">1234</text> | 96 <text x="0" y="-10 -5 5 10" font-family="embedded" f
ont-size="10">1234</text> |
| 97 </g> | 97 </g> |
| 98 | 98 |
| 99 <!-- 4.x 4.y : four text chunks --> | 99 <!-- 4.x 4.y : four text chunks --> |
| 100 <g transform="translate(0, 150)"> | 100 <g transform="translate(0, 150)"> |
| 101 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> | 101 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> |
| 102 <use x="20" y="-5" xlink:href="#marker" fill="#8888f
f"/> | 102 <use x="20" y="-5" xlink:href="#marker" fill="#8888f
f"/> |
| 103 <use x="30" y="5" xlink:href="#marker" fill="#8888ff
"/> | 103 <use x="30" y="5" xlink:href="#marker" fill="#8888ff
"/> |
| 104 <use x="40" y="10" xlink:href="#marker" fill="#8888f
f"/> | 104 <use x="40" y="10" xlink:href="#marker" fill="#8888f
f"/> |
| 105 <text x="10 20 30 40" y="-10 -5 5 10" font-family="e
mbeded" font-size="10">1234</text> | 105 <text x="10 20 30 40" y="-10 -5 5 10" font-family="e
mbedded" font-size="10">1234</text> |
| 106 </g> | 106 </g> |
| 107 | 107 |
| 108 <!-- 2.x 4.y : four text chunks --> | 108 <!-- 2.x 4.y : four text chunks --> |
| 109 <g transform="translate(0, 180)"> | 109 <g transform="translate(0, 180)"> |
| 110 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> | 110 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> |
| 111 <use x="20" y="-5" xlink:href="#marker" fill="#8888f
f"/> | 111 <use x="20" y="-5" xlink:href="#marker" fill="#8888f
f"/> |
| 112 <use x="35" y="5" xlink:href="#marker" fill="#8888ff
"/> | 112 <use x="35" y="5" xlink:href="#marker" fill="#8888ff
"/> |
| 113 <use x="50" y="10" xlink:href="#marker" fill="#8888f
f"/> | 113 <use x="50" y="10" xlink:href="#marker" fill="#8888f
f"/> |
| 114 <text x="10 20" y="-10 -5 5 10" font-family="embeded
" font-size="10">1234</text> | 114 <text x="10 20" y="-10 -5 5 10" font-family="embedde
d" font-size="10">1234</text> |
| 115 </g> | 115 </g> |
| 116 | 116 |
| 117 <!-- 1.x 2.y : two text chunks --> | 117 <!-- 1.x 2.y : two text chunks --> |
| 118 <g transform="translate(0, 210)"> | 118 <g transform="translate(0, 210)"> |
| 119 <use x="0" y="-10" xlink:href="#marker" fill="#8888f
f"/> | 119 <use x="0" y="-10" xlink:href="#marker" fill="#8888f
f"/> |
| 120 <use x="15" y="5" xlink:href="#marker" fill="#8888ff
"/> | 120 <use x="15" y="5" xlink:href="#marker" fill="#8888ff
"/> |
| 121 <text x="0" y="-10 5" font-family="embeded" font-siz
e="10">1234</text> | 121 <text x="0" y="-10 5" font-family="embedded" font-si
ze="10">1234</text> |
| 122 </g> | 122 </g> |
| 123 | 123 |
| 124 <!-- 4.x 2.y : four text chunks --> | 124 <!-- 4.x 2.y : four text chunks --> |
| 125 <g transform="translate(0, 240)"> | 125 <g transform="translate(0, 240)"> |
| 126 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> | 126 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> |
| 127 <use x="20" y="-5" xlink:href="#marker" fill="#8888f
f"/> | 127 <use x="20" y="-5" xlink:href="#marker" fill="#8888f
f"/> |
| 128 <use x="30" y="-5" xlink:href="#marker" fill="#8888f
f"/> | 128 <use x="30" y="-5" xlink:href="#marker" fill="#8888f
f"/> |
| 129 <use x="40" y="-5" xlink:href="#marker" fill="#8888f
f"/> | 129 <use x="40" y="-5" xlink:href="#marker" fill="#8888f
f"/> |
| 130 <text x="10 20 30 40" y="-10 -5" font-family="embede
d" font-size="10">1234</text> | 130 <text x="10 20 30 40" y="-10 -5" font-family="embedd
ed" font-size="10">1234</text> |
| 131 </g> | 131 </g> |
| 132 | 132 |
| 133 <!-- 2.x 2.y : two text chunks --> | 133 <!-- 2.x 2.y : two text chunks --> |
| 134 <g transform="translate(0, 270)"> | 134 <g transform="translate(0, 270)"> |
| 135 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> | 135 <use x="10" y="-10" xlink:href="#marker" fill="#8888
ff"/> |
| 136 <use x="60" y="-5" xlink:href="#marker" fill="#8888f
f"/> | 136 <use x="60" y="-5" xlink:href="#marker" fill="#8888f
f"/> |
| 137 <text x="10 60" y="-10 -5" font-family="embeded" fon
t-size="10">1234</text> | 137 <text x="10 60" y="-10 -5" font-family="embedded" fo
nt-size="10">1234</text> |
| 138 </g> | 138 </g> |
| 139 | 139 |
| 140 </g> | 140 </g> |
| 141 </g> | 141 </g> |
| 142 | 142 |
| 143 <g id="anchorMiddle" text-anchor="middle" transform="translate(2
50, 40)"> | 143 <g id="anchorMiddle" text-anchor="middle" transform="translate(2
50, 40)"> |
| 144 <text y="-17" text-anchor="middle">text-anchor</text> | 144 <text y="-17" text-anchor="middle">text-anchor</text> |
| 145 <text y="-3" text-anchor="middle">middle</text> | 145 <text y="-3" text-anchor="middle">middle</text> |
| 146 <line x1="0" y1="10" x2="0" y2="290" stroke="red"/> | 146 <line x1="0" y1="10" x2="0" y2="290" stroke="red"/> |
| 147 <use xlink:href="#textContent"/> | 147 <use xlink:href="#textContent"/> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 165 | 165 |
| 166 function repaintTest() { | 166 function repaintTest() { |
| 167 var range = document.createRange(); | 167 var range = document.createRange(); |
| 168 range.selectNode(window.document.documentElement); | 168 range.selectNode(window.document.documentElement); |
| 169 var selection = window.getSelection(); | 169 var selection = window.getSelection(); |
| 170 selection.removeAllRanges(); | 170 selection.removeAllRanges(); |
| 171 selection.addRange(range); | 171 selection.addRange(range); |
| 172 } | 172 } |
| 173 </script> | 173 </script> |
| 174 </svg> | 174 </svg> |
| OLD | NEW |