- From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
- Date: Fri, 10 Sep 2010 08:51:47 +0200
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: www-svg@w3.org
Received on Friday, 10 September 2010 06:52:19 UTC
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 UTC