| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> |
| <!--======================================================================--> |
| <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, Institut National de Recherche en =--> |
| <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <!-- ===================================================================== --> |
| <!-- --> |
| <!-- masking-mask-04-f.svg --> |
| <!-- --> |
| <!-- Tests the impact of strokes within clipPath and mask --> |
| <!-- --> |
| <!-- Author : Corel SVG Viewer QA team 01-05-2003 --> |
| <!-- Revised by: Benoit Bezaire --> |
| <!-- --> |
| <!--======================================================================--> |
| |
| <SVGTestCase |
| xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" |
| xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" |
| owner="BB" reviewer="CL" desc="Tests the impact of strokes within |
| clipPath and mask" status="accepted" version="$Revision: 1.7 $" testname="$RCSfile: masking-intro-01-f.svg,v $"> |
| <OperatorScript> |
| <Paragraph>The rules are different regarding the geometry of a shape when clipping and masking. |
| For example, a clip-path does not take into account the stroke of the shape used for clipping. |
| It is however, used when masking. |
| </Paragraph> |
| <Paragraph>The UA should render at the top of the illustration, two identical darkblue circles. |
| Below those two cicles, two more circles should appear. They are of lighter appearance, |
| the one on the left has a darker and thick stroke. |
| </Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| |
| <title id="test-title">masking-mask-04-f.svg</title> |
| <desc id="test-desc">Tests the impact of strokes within clipPath and mask</desc> |
| |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <text font-size="18" x="240" y="35" text-anchor="middle">Testing stroke inclusion for 'clip-path' and 'mask'</text> |
| |
| <defs> |
| <clipPath id="one" clipPathUnits="objectBoundingBox"> |
| <circle cx="0.3" cy="0.5" r="0.2" stroke-width="0.15" fill="none" stroke="red"/> |
| <circle cx="0.7" cy="0.5" r="0.2" stroke-width="0.15" fill="none" stroke="none"/> |
| </clipPath> |
| </defs> |
| |
| <rect x="150" y="0" width="200" height="200" fill="darkblue" clip-path="url(#one)"/> |
| <text x="50" y="110">With a 'clip-path':</text> |
| |
| <defs> |
| <mask id="two" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"> |
| <circle cx="0.3" cy="0.5" r="0.2" stroke-width="0.15" fill="blue" stroke="red"/> |
| <circle cx="0.7" cy="0.5" r="0.2" stroke-width="0.15" fill="blue" stroke="none"/> |
| </mask> |
| </defs> |
| |
| <rect x="150" y="150" width="200" height="200" fill="darkblue" mask="url(#two)"/> |
| <text x="50" y="260">With a 'mask':</text> |
| |
| |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |