Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/svg/shapes/reftests/ellipse-auto-rx-textpath.html
<!DOCTYPE html> <html> <title>SVG ellipse with auto rx/ry referenced from <textPath> resolves per SVG 2</title> <link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/shapes.html#EllipseElement"> <link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/text.html#TextPathElement"> <link rel="match" href="ellipse-auto-rx-textpath-ref.html"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <meta name="assert" content="An ellipse with auto rx (or auto ry) referenced as the path geometry of a <textPath> must lay glyphs out identically to an ellipse with the resolved explicit value, per SVG 2 ยง10.4."> <style> text { font-family: Ahem; font-size: 20px; fill: black; } </style> <svg width="320" height="200"> <defs> <ellipse id="auto-rx" cx="80" cy="100" rx="auto" ry="60"/> <ellipse id="auto-ry" cx="240" cy="100" rx="60" ry="auto"/> </defs> <text><textPath href="#auto-rx">XXXXXXXX</textPath></text> <text><textPath href="#auto-ry">XXXXXXXX</textPath></text> </svg> </html>
/svg/shapes/reftests/ellipse-auto-rx-textpath-ref.html
<!DOCTYPE html> <html> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <style> text { font-family: Ahem; font-size: 20px; fill: black; } </style> <svg width="320" height="200"> <defs> <ellipse id="explicit-1" cx="80" cy="100" rx="60" ry="60"/> <ellipse id="explicit-2" cx="240" cy="100" rx="60" ry="60"/> </defs> <text><textPath href="#explicit-1">XXXXXXXX</textPath></text> <text><textPath href="#explicit-2">XXXXXXXX</textPath></text> </svg> </html>