| <?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"> |
| |
| <!-- |
| |
| Copyright 2002 The Apache Software Foundation |
| |
| Licensed 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 id="body" width="450" height="500" viewBox="0 0 450 500"> |
| <title>Error: attribute "in2" on <feDisplacementMap> is missing</title> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="./batikMark.svg#BatikTag" /> |
| |
| <!-- ============================================================= --> |
| <!-- Test content --> |
| <!-- ============================================================= --> |
| <g id="testContent"> |
| |
| <text x="225" y="40" class="title"> |
| Error: attribute "in2" on <feDisplacementMap> |
| </text> |
| <text x="225" y="60" class="title"> |
| is missing |
| </text> |
| |
| <defs> |
| <pattern id="pattern" patternUnits="userSpaceOnUse" x="0" y="0" |
| width="20" height="20"> |
| <rect x="0" y="0" width="10" height="10" fill="red" /> |
| <rect x="10" y="10" width="10" height="10" fill="green" /> |
| </pattern> |
| <rect id="displaced" x="0" y="0" width="100" height="100" fill="url(#pattern)" /> |
| <linearGradient id="redOnly" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0"> |
| <stop offset="0" stop-color="rgb(255, 128, 128)" /> |
| <stop offset=".25" stop-color="rgb(0, 128, 128)" /> |
| <stop offset=".5" stop-color="rgb(255, 128, 128)" /> |
| <stop offset="1" stop-color="rgb(0, 128, 128)" /> |
| </linearGradient> |
| <rect id="redOnlyMap" x="0" y="0" width="100" height="100" fill="url(#redOnly)" /> |
| |
| <filter id="good" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#redOnlyMap" result="map" /> |
| <feImage xlink:href="#displaced" result="displaced" /> |
| <feDisplacementMap in="displaced" in2="map" |
| scale="30" xChannelSelector="G" yChannelSelector="R" /> |
| </filter> |
| <filter id="bad" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#redOnlyMap" result="map" /> |
| <feImage xlink:href="#displaced" result="displaced" /> |
| <feDisplacementMap in="displaced" |
| scale="30" xChannelSelector="G" yChannelSelector="R" /> |
| </filter> |
| |
| |
| |
| </defs> |
| |
| <text x="225" y="240" class="legend">A filtered rectangle using <feDisplacementMap></text> |
| <text x="225" y="440" class="legend"> |
| A filtered rectangle using <feDisplacementMap>. |
| </text> |
| <text x="225" y="454" class="legend"> |
| The attribute "in2" of <feDisplacementMap> is missing |
| </text> |
| |
| <rect transform="translate(165 100)" x="0" y="0" width="100" height="100" style="filter:url(#good)"/> |
| <rect transform="translate(165 300)" x="0" y="0" width="100" height="100" style="filter:url(#bad)"/> |
| |
| |
| </g> |
| </svg> |