W3C home > Mailing lists > Public > www-svg@w3.org > August 2007

clip % mask...

From: ~:'' ありがとうございました。 <j.chetwynd@btinternet.com>
Date: Tue, 28 Aug 2007 09:04:39 +0100
Message-Id: <5A6A5863-88D7-46A6-82DC-C7962C23676B@btinternet.com>
To: SVG List <www-svg@w3.org>

clip % mask...

Doug et al,

what workaround is possible where the "donut" is defined in percentage?
clip uses path and mask does not allow pointer events through the hole.

cheers

Jonathan Chetwynd
Accessibility Consultant on Media Literacy and the Internet

<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="100%" height="100%"
 >
<defs>

<symbol id="hole" viewBox="0 0 150 150">
<circle cx="75" cy="75" r="75" />
</symbol>

</defs>

<g stroke="none" >
<rect x="0" y="0" width="100%" height="55%" fill="red" />
<rect x="0" y="55%" width="100%" height="100%" fill="orange" />

<use xlink:href="#hole" x="30%" y="50%" width="10%" height="10%"
fill="purple"/>

<rect x="0" y="0" width="100%" height="100%" fill="blue" />

<use xlink:href="#hole" x="20%" y="40%" width="30%" height="30%"
fill="black"/>

</g>
</svg>
Received on Tuesday, 28 August 2007 08:04:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 August 2007 08:04:56 GMT