summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/text/reftests/text-inline-size-001.svg
blob: ae1a10d190ac0f04a2a3168ff8096aaa4fa60066 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<svg id="svg-root"
  width="100%" height="100%" viewBox="0 0 480 360"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:html="http://www.w3.org/1999/xhtml">
  <g id="testmeta">
    <title>Text: Inline Size — 001</title>
    <html:link rel="author"
          title="Tavmjong Bah"
          href="mailto:tavmjong@free.fr"/>
    <html:link rel="help"
          href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
    <html:link rel="match"  href="text-inline-size-001-ref.svg" />
  </g>

  <style id="test-font" type="text/css">
    /* Standard Font (if needed). */
    @font-face {
      font-family: FreeSans;
      src: url("fonts/FreeSans.woff") format("woff"),
           local("FreeSans");
    }
    text { font-family: FreeSans, sans-serif }
  </style>

  <style id="test-style" type="text/css">
    /* Style that is being tested (if needed). */
    text { font-family: FreeSans, sans-serif }
  </style>

  <g id="test-body-content" style="font-size:16px;line-spacing:1.25">
    <g transform="translate(0,0)">
      <text x="80" y="114.8" style="inline-size:320px">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
    </g>
    <g transform="translate(0,60)">
      <text x="240" y="114.8" style="inline-size:320px;text-anchor:middle">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
    </g>
    <g transform="translate(0,120)">
      <text x="400" y="114.8" style="inline-size:320px;text-anchor:end">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
    </g>
  </g>

</svg>