W3C home > Mailing lists > Public > www-svg@w3.org > September 2010

Re: pointer-events test case

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Fri, 10 Sep 2010 08:51:47 +0200
Message-ID: <AANLkTikFrD6FXusBek4zm2pWcLA3FFwpPxFAs9LecdVc@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-svg@w3.org
2010/9/10 Boris Zbarsky <bzbarsky@mit.edu>

> I think I missed something here.  pointer-events inherits in Gecko. What's
> the failure being observed?
>
> -Boris
>

I have investigate a bit further and finally found what is the real problem

It seams that Firefox and Chrome support the value "auto" for the
pointer-events property, which is not a valid value according to the SVG
spec.


The following case inherit the parent value as expected in every browser :

<g style="pointer-events:none;">
    <rect x="20"  y="20" width="200" height="200"
style="pointer-events:foo;" onclick="alert('I am clicked')" />
</g>


But the following variant fail with Firefox and Chrome and you show the JS
alert when you click on the square but you should not because auto is not a
valid value for pointer-events :

<g style="pointer-events:none;">
    <rect x="20"  y="20" width="200" height="200"
style="pointer-events:auto;" onclick="alert('I am clicked')" />
</g>

Jeremie Patonnier
Received on Friday, 10 September 2010 06:52:19 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:46 GMT