layout/reftests/svg/clipPath-and-shape-rendering-01.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

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 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=489718 -->
michael@0 6 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
michael@0 7 <title>Test that shape-rendering hint affects clipping</title>
michael@0 8 <desc>
michael@0 9 By not setting explict shape-rendering attribute, this test tells browsers to
michael@0 10 apply anti-aliasing to all shape's rendering. And this test checks the hint
michael@0 11 correctly affects clip-path, too.
michael@0 12 </desc>
michael@0 13 <defs>
michael@0 14 <circle id="circle1" cx="50" cy="50" r="50" fill="lime"/>
michael@0 15 <circle id="circle2" cx="150" cy="50" r="50" fill="lime"/>
michael@0 16 <clipPath id="clip">
michael@0 17 <use xlink:href="#circle1"/>
michael@0 18 <use xlink:href="#circle2"/>
michael@0 19 </clipPath>
michael@0 20 </defs>
michael@0 21
michael@0 22 <rect width="200" height="100" fill="lime" clip-path="url(#clip)"/>
michael@0 23 </svg>
michael@0 24

mercurial