W3C home > Mailing lists > Public > www-svg@w3.org > October 2012

Re: Cross domain resource

From: Dirk Schulze <dschulze@adobe.com>
Date: Fri, 26 Oct 2012 18:20:01 -0700
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <DD30F3A1-A72C-42D1-ADBA-BDDF283346FE@adobe.com>

On Oct 27, 2012, at 3:14 AM, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:

> On 10/26/12 7:33 PM, Dirk Schulze wrote:
>> This seems confusing and should be unified. What about this (simplified):
>> <mask>
>> 	<rect>
>> 		<animate attributeName="width" onend="fire();"/>
>> 	</rect>
>> </mask>
>> This would fire if the snippet is in the same document, but wouldn't if it is in an external one?
> That's correct.  Not loaded directly in a browsing context means no 
> Window, means no script.
That is an interesting concept. Is it described in a different spec? I think our tries load the fragment into the same document. Which would be harder to detect. But we still don't support external resources like clipPath mask or paint servers yet.

>>> Well, you can also extract geometry data from the external document, right?
>> With different origin? Maybe I am wrong, but I thought this would not be so easy.
> You take a rectangle in your document.  You apply a mask to it.  That 
> mask affects hit-testing on the rectangle, no?  So you can extract the 
> geometry of the mask.
Mask does not affect hit testing, but clipPath does (the only resource). But it does not expose this region without the interaction of the user (move mouse over clipped region). That is different with the scenario that Adam described, which can be fully automated.


> -Boris
Received on Saturday, 27 October 2012 01:20:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:38 UTC