Re: Announcement: Last Call WD of SVG 1.1 Second Edition

On Wed, Feb 2, 2011 at 11:21 PM, Erik Dahlstrom <ed@opera.com> wrote:

> You're right. What I really meant was, why should raster images get this
> special treatment in svg at all? My guess is that this particular
> specialcase[1] is largely unused today. I'd therefore like to open up
> discussion on an alternative proposal, which is to simply drop the special
> handling for raster images with alpha in the pointer-event definition[2] in
> SVG 1.1 Second Edition. However, a thing to note is that filters aren't
> meant to affect pointer-events processing at all, for the purposes of hit
> detection it's as if there was no filter applied [2].
>

If pointer-events:visiblePainted is used on an <image src="foo.svg"> to let
the pointer "go through" transparent pixels of the image, and foo.svg uses
filters internally to construct the image, I would say that those filters
*should* affect the pointer, wouldn't you?

Some things happened since my last message. For one thing, we implemented
<img src="foo.svg"> in Firefox and discovered security and privacy issues if
you let foo.svg load resources cross-origin or maybe even let it load
resources from the same origin! So we're only allowing data: URLs in there
for now :-(. So my proposed attack is blocked by that.

Anyway, thanks for bringing this up again, via
> http://weblogs.mozillazine.org/roc/archives/2011/02/distinguishing.html.
>
> Another question, does html:img have similar issues now that Firefox can
> apply filters to html content?
>

No, because we don't support pointer-events:visiblePainted or anything
equivalent.

I'm not quite sure what you were suggesting about raster images. I've
actually heard lots of author requests for a feature that lets pointer
events go through the transparent pixels of images, so I'd like to keep that
feature alive in pointer-events.

Rob
-- 
"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]

Received on Wednesday, 2 February 2011 11:31:37 UTC