Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/pservers/reftests/pattern-viewbox-01.svg - WPT Dashboard Interop Dashboard
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 5669 5669" xmlns:html="http://www.w3.org/1999/xhtml">
<g id="testmeta">
<title>Pattern: viewBox with x offset</title>
<html:link rel="help"
<html:link rel="match" href="reference/pattern-viewbox-01-ref.svg"/>
</g>
<pattern width="2258.997" height="1289.823" patternUnits="userSpaceOnUse" id="pattern"
viewBox="752.999 0 2258.997 1289.823" patternTransform="scale(0.5)">
<g transform="translate(0,1934.735)" fill="none" stroke="black" stroke-width="10">
<rect x="752.999" y="-1934.735" width="2258.997" height="1289.823"/>
<circle cx="1882.4975" cy="-1289.8235" r="644.9115"/>
</g>
</pattern>
<rect width="100%" height="100%" fill="url(#pattern)"/>
</svg>