summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/coordinate-systems/support/abspos-ref.html
blob: 6966d8cbc88de06a3170fbd2d5941f858d004fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<title>Intrinsic sizing for &lt;svg&gt;</title>
<link rel="help" href="https://www.w3.org/TR/SVG2/coords.html">
<style>
#container {
  width: 200px;
  height: 300px;
  position: relative;
  border: 10px solid black;
}
#target {
  fill: green;
  width: 200px;
  height: 200px;
}
</style>
<div id="container">
  <svg id="target" viewBox="0 0 50 50"><circle cx="50%" cy="50%" r="50%"></circle></svg>
</div>