summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg
blob: 7f5a95ac095a5acae68e72c1963788f3d5a5648c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<svg xmlns="http://www.w3.org/2000/svg">
<!--
    SVG test glyphs for paint servers within SVG glyphs
    e: tests that we can refer to paint servers within the SVG glyph doc
      (i.e. fill="url(#grad)" works)
    f: tests that stop-color="context-{fill,stroke}" uses the context fill/stroke
      fallback color
-->
  <defs>
    <linearGradient id="grad">
      <stop offset="0%" stop-color="papayawhip" />
      <stop offset="100%" stop-color="plum" />
    </linearGradient>

    <linearGradient id="grad2">
      <stop offset="0%" stop-color="context-fill" />
      <stop offset="100%" stop-color="context-stroke" />
    </linearGradient>
  </defs>

  <!-- char 'e' -->
  <rect id="glyph72" x="250" y="-750" width="500" height="500"
    fill="url(#grad)" />

  <!-- char 'f' -->
  <rect id="glyph73" x="250" y="-750" width="500" height="500"
    fill="url(#grad2)" />
</svg>