aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test/xml/pdf-a/svg-transparency.fo
blob: 922416fbcfdb94ca1f23e2c191c6d3a232a683c1 (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
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="page"
      page-height="420pt" page-width="620pt" margin="10pt">
      <fo:region-body display-align="center"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="page">
    <fo:flow flow-name="xsl-region-body" text-align="center">
      <fo:block font-size="20pt">RGB Circles</fo:block>
      <fo:block><fo:instream-foreign-object>
          <svg xmlns="http://www.w3.org/2000/svg" width="300" height="286.6">
            <g style="fill-opacity:0.7; stroke:black; stroke-width:3"
              transform="translate(0, 286.6) scale(1, -1) translate(100, 100)">
              <circle cx="50"  cy="86.6" r="80" style="fill:red;"/>
              <circle cx="0"   cy="0"    r="80" style="fill:green;"/>
              <circle cx="100" cy="0"    r="80" style="fill:blue;"/>
            </g>
          </svg>
      </fo:instream-foreign-object></fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>