Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | wpt.fyi
/svg/coordinate-systems/viewBox-zero-disables-rendering-pattern.svg
<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml" width="200" height="200"> <title>A pattern with a zero viewBox disables rendering of its content (empty fill)</title> <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/coords.html#ViewBoxAttribute"/> <h:link rel="match" href="viewBox-zero-disables-rendering-ref.svg"/> <h:meta name="assert" content="A pattern whose viewBox has a zero width disables rendering of its content, so a shape painted with the pattern shows nothing."/> <defs> <pattern id="p" viewBox="0 0 0 100" width="200" height="200" patternUnits="userSpaceOnUse"> <rect width="100" height="100" fill="green"/> </pattern> </defs> <rect width="200" height="200" fill="url(#p)"/> </svg>