summaryrefslogtreecommitdiff
path: root/tests/fixtures/reftests/bugs/bug510-pattern-fill-opacity.svg
blob: 569d8ba4dc7b5ab3bd1552918475fbb1ae33e866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
  <defs>
    <linearGradient id="Gradient1">
      <stop offset="5%" stop-color="white"/>
      <stop offset="95%" stop-color="blue"/>
    </linearGradient>
    <linearGradient id="Gradient2" x1="0" x2="0" y1="0" y2="1">
      <stop offset="5%" stop-color="red"/>
      <stop offset="95%" stop-color="orange"/>
    </linearGradient>

    <pattern id="Pattern" x="0" y="0" width=".25" height=".25">
      <rect x="0" y="0" width="50" height="50" fill="skyblue"/>
      <rect x="0" y="0" width="25" height="25" fill="url(#Gradient2)"/>
    </pattern>
  </defs>

  <rect fill="url(#Gradient1)" width="200" height="200"/>
  <rect fill="url(#Pattern)" stroke="black" width="200" height="200" fill-opacity=".2"/>
</svg>