Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <svg xmlns="http://www.w3.org/2000/svg">
7 <title>Testcase for elements referencing an objectBoundingBox pattern with a viewBox</title>
9 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=605022 -->
11 <defs>
12 <pattern id="test" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox" viewBox="0 0 20 20">
13 <rect width="20" height="20" stroke="none" fill="lime"/>
14 <rect width="1" height="1" stroke="none" fill="red"/>
15 </pattern>
16 <pattern id="cover" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox">
17 <rect width="0.01" height="0.01" stroke="none" fill="lime"/>
18 </pattern>
19 </defs>
21 <rect width="100%" height="100%" fill="lime"/>
22 <rect x="20" y="20" width="200" height="200" fill="url(#test)"/>
23 <rect x="20" y="20" width="200" height="200" fill="url(#cover)"/>
24 </svg>