Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/svg/viewBox-and-pattern-04.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<defs>
<pattern id="p2"
height="1" width="1"
viewBox="0 0 10 10"
preserveAspectRatio="xMidYMid meet">
<circle cx="5" cy="5" r="5px" fill="red"/>
</pattern>
</defs>
<rect width="100%" height="100%" fill="lime"/>
<rect width="300" height="100" fill="url(#p2)"/>
<rect x="100" width="100" height="100" fill="lime"/>
</svg>