summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/geometry/reftests/circle-004.svg
blob: 36c9e0096f0272d0762deb3305b07e2022fa66f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<svg width="340" height="140"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:html="http://www.w3.org/1999/xhtml">
  <title>Circle coordinates and radius specified using calc</title>
  <html:link rel="help" href="https://svgwg.org/svg2-draft/geometry.html"/>
  <html:link rel="match"  href="circle-ref.svg" />
  <style>
    circle {
      fill: blue;
      font-size: 40px;
    }
  </style>
  <circle cx="calc(80px + 60% - 2em)" cy="calc(80px + 40% - 2em)"
    r="calc(5 * 5%)" />
</svg>