| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN" |
| "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- ========================================================================= --> |
| <!-- Error on rect --> |
| <!-- --> |
| <!-- @author tkormann@apache.org --> |
| <!-- @version $Id$ --> |
| <!-- ========================================================================= --> |
| |
| <?xml-stylesheet type="text/css" href="test.css" ?> |
| |
| <svg xmlns="http://www.w3.org/2000/svg" |
| id="body" width="450" height="500" viewBox="0 0 450 500"> |
| <title>Default: <mask> has no subelement</title> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="./batikMark.svg#BatikTag" /> |
| |
| <!-- ============================================================= --> |
| <!-- Test content --> |
| <!-- ============================================================= --> |
| <g id="testContent"> |
| |
| <text x="225" y="40" class="title"> |
| Default: <mask> has no subelement |
| </text> |
| |
| <defs> |
| <radialGradient id="maskedGradient" cx="50%" cy="50%" r="50%"> |
| <stop offset="0" stop-color="blue" /> |
| <stop offset="1" stop-color="red" /> |
| </radialGradient> |
| |
| <mask id="good" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"> |
| <circle cx=".25" cy=".25" r=".25" fill="#ffffff" /> |
| <circle cx="25%" cy="75%" r=".25" fill="#ffffff" /> |
| <circle cx="75%" cy=".25" r="25%" fill="#ffffff" /> |
| <circle cx=".75" cy="75%" r=".25" fill="#ffffff" /> |
| </mask> |
| <mask id="bad" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"/> |
| |
| </defs> |
| |
| <text x="225" y="240" class="legend">A masked rectangle</text> |
| <text x="225" y="440" class="legend"> |
| A masked rectangle |
| </text> |
| <text x="225" y="454" class="legend"> |
| <mask> has no subelement |
| </text> |
| |
| <rect x="175" y="100" width="100" height="100" style="fill:url(#maskedGradient); mask:url(#good)"/> |
| <rect x="175" y="300" width="100" height="100" style="fill:url(#maskedGradient); mask:url(#bad)"/> |
| |
| |
| </g> |
| </svg> |