Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/transform-box/svgbox-stroke-box-003.html
<!DOCTYPE html> <title>transform-box: stroke-box, stroke with vector-effect: non-scaling-stroke</title> <link rel="author" title="Jonathan Watt" href="mailto:jwatt@jwatt.org"> <link rel="match" href="reference/svgbox-rect-ref.html"> <link rel="help" href="https://drafts.csswg.org/css-transforms-1/#transform-box"> <link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/coords.html#VectorEffects"> <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9640"> <meta name="assert" content="The used value of transform-box is fill-box on SVG with non-scaling-stroke"/> <style> #target { fill: green; stroke: black; stroke-width: 20; vector-effect: non-scaling-stroke; transform-box: stroke-box; transform: scale(0.5) translateY(-100%); } </style> <svg width="400" height="300"> <rect id="target" width="100" height="200" x="50" y="180"/> </svg>
/css/css-transforms/transform-box/reference/svgbox-rect-ref.html
<!DOCTYPE html> <style> #target { fill: green; stroke: black; stroke-width: 20; transform: none; } </style> <svg width="400" height="300"> <rect id="target" width="50" height="100" x="50" y="80"/> </svg>