Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!-- |
michael@0 | 2 | Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 4 | --> |
michael@0 | 5 | <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"> |
michael@0 | 6 | <defs> |
michael@0 | 7 | <mask id="m1" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"> |
michael@0 | 8 | <rect x="0" y="0" width="1" height="1" fill="white"/> |
michael@0 | 9 | </mask> |
michael@0 | 10 | </defs> |
michael@0 | 11 | <foreignObject width="100%" height="100%" transform="scale(0.5)"> |
michael@0 | 12 | <svg style="width:100%; height:100%;"> |
michael@0 | 13 | <rect width="100%" height="100%" fill="lime" mask="url(#m1)"/> |
michael@0 | 14 | </svg> |
michael@0 | 15 | </foreignObject> |
michael@0 | 16 | </svg> |
michael@0 | 17 |