layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
michael@0 2 <!--
michael@0 3 SVG test glyphs for transforms within SVG glyphs
michael@0 4 'g': simple red square used as a reference
michael@0 5 'h': a smaller square, with a transform that should make it match the 'g'
michael@0 6 'i': similar, applying a transform to the referenced element
michael@0 7 'j': has a large blue square that should be transformed such that it is
michael@0 8 completely hidden by the red
michael@0 9 'k': tests the accumulation of several transforms
michael@0 10 'l': checks that a transform from outside the glyph element is NOT applied
michael@0 11 'm', 'n', 'o', 'p': all render the same <rect> but only 'm' and 'n' should be
michael@0 12 transformed; 'o' and 'p' should match 'q'
michael@0 13 'q': the unscaled small square, reference for 'o' and 'p' above
michael@0 14 -->
michael@0 15
michael@0 16 <defs>
michael@0 17 <!-- this rect will need to be scaled 5x to match the reference glyph 'g' -->
michael@0 18 <rect id="small" x="50" y="-150" width="100" height="100" fill="red" />
michael@0 19 </defs>
michael@0 20
michael@0 21 <!-- char 'g' -->
michael@0 22 <rect id="glyph74" x="250" y="-750" width="500" height="500" fill="red" />
michael@0 23
michael@0 24 <!-- char 'h' -->
michael@0 25 <rect id="glyph75" x="25" y="-75" width="50" height="50" transform="scale(10)" fill="red" />
michael@0 26
michael@0 27 <!-- char 'i' -->
michael@0 28 <g id="glyph76">
michael@0 29 <use xlink:href="#small" transform="scale(5)" />
michael@0 30 </g>
michael@0 31
michael@0 32 <!-- char 'j' -->
michael@0 33 <g id="glyph77">
michael@0 34 <g transform="translate(300,-300) scale(0.4)">
michael@0 35 <rect x="0" y="-1000" width="1000" height="1000" fill="blue" />
michael@0 36 </g>
michael@0 37 <g transform="scale(5)">
michael@0 38 <use xlink:href="#small" />
michael@0 39 </g>
michael@0 40 </g>
michael@0 41
michael@0 42 <!-- char 'k' -->
michael@0 43 <g id="glyph78" transform="scale(0.5)">
michael@0 44 <g transform="scale(0.5)">
michael@0 45 <use xlink:href="#small" transform="scale(20)" />
michael@0 46 </g>
michael@0 47 </g>
michael@0 48
michael@0 49 <!-- char 'l' -->
michael@0 50 <g transform="scale(2)">
michael@0 51 <g id="glyph79">
michael@0 52 <use xlink:href="#small" transform="scale(5)" />
michael@0 53 </g>
michael@0 54 </g>
michael@0 55
michael@0 56 <g id="glyph80"> <!-- char 'm' -->
michael@0 57 <g id="glyph81" transform="scale(5)"> <!-- char 'n' -->
michael@0 58 <g id="glyph82"> <!-- char 'o' -->
michael@0 59 <use id="glyph83" xlink:href="#small" /> <!-- char 'p' -->
michael@0 60 </g>
michael@0 61 </g>
michael@0 62 </g>
michael@0 63
michael@0 64 <!-- char 'q' -->
michael@0 65 <use id="glyph84" xlink:href="#small" />
michael@0 66
michael@0 67 </svg>

mercurial