Status: FAIL | Duration: 20ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-viewport/zoom/svg.html
<!doctype html> <meta charset="utf-8"> <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez"> <link rel="author" href="https://mozilla.org" title="Mozilla"> <link rel="help" href="https://drafts.csswg.org/css-viewport/#zoom-property"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1899695"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1916111"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <link rel="match" href="svg-ref.html"> <style> :root { font-size: 10px; zoom: 2; } body { margin: 0 } .container { font-size: 20px; } .child { zoom: 2; } line { stroke-width: 10px; stroke: lime; } polygon, polyline, text { fill: lime; } text { font: 10px/1 Ahem; } svg { background-color: red; } </style> <div class="container"> <div class="child"> <svg width=100 height=100> <defs> <path id="p" d="M80,60H25"/> </defs> <rect width=10rem height=100 fill="blue"/> <line y1=0 y2=0 x1=0 x2=50 /> <line y1=10 y2=10 x1=0 x2=2.5em /> <line y1=20 y2=20 x1=0 x2=5rem /> <line y1=30 y2=30 x1=0 x2=50% /> <line y1=40 y2=40 x1=0 x2=1vw /> <polygon points="0,50 50,50 50,60 0,60"/> <polyline points="0,60 50,60 50,70 0,70"/> <text x=80 y=60>X</text> <text><textPath href="#p">X</textPath></text> </svg> </div> </div>
/css/css-viewport/zoom/svg-ref.html
<!doctype html> <link rel="stylesheet" href="/fonts/ahem.css"/> <style> body { margin: 0 } :root { font-size: 10px; } .container { font-size: 20px; } line { stroke-width: 40px; stroke: lime; } polygon, polyline, text { fill: lime; } text { font: 40px/1 Ahem; } svg { background-color: red; } </style> <div class="container"> <svg width=400 height=400> <defs> <path id="p" d="M320,240H100"/> </defs> <rect width=400 height=400 fill="blue"/> <line y1=0 y2=0 x1=0 x2=200 /> <line y1=40 y2=40 x1=0 x2=10em /> <line y1=80 y2=80 x1=0 x2=20rem /> <line y1=120 y2=120 x1=0 x2=50% /> <line y1=160 y2=160 x1=0 x2=4vw /> <polygon points="0,200 200,200 200,240 0,240"/> <polyline points="0,240 200,240 200,280 0,280"/> <text x=320 y=240>X</text> <text><textPath href="#p">X</textPath></text> </svg> </div>