Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/geometry/reftests/ellipse-004.svg - WPT Dashboard Interop Dashboard
<svg width="300" height="200"
<title>Ellipse coordinates and radii specified using calc</title>
<html:link rel="match" href="ellipse-ref.svg" />
<style>
ellipse {
fill: blue;
font-size: 40px;
}
</style>
<ellipse cx="calc(80px + 25% - 2em)" cy="calc(80px + 60% - 2em)"
rx="calc(4 * 5%)" ry="calc(5 * 5%)" />
</svg>