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

(unknown charset) clip % mask...

From: (unknown charset) ~:'' ありがとうございました。 <j.chetwynd@btinternet.com>
Date: Tue, 28 Aug 2007 09:04:39 +0100
Message-Id: <5A6A5863-88D7-46A6-82DC-C7962C23676B@btinternet.com>
To: (unknown charset) 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.3.1 : Friday, 8 March 2013 15:54:37 GMT