pointer-events on foreignObject with ClipPath

RESOLVED FIXED

Status

()

Core
SVG
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: Jeremie, Assigned: Robert Longson)

Tracking

unspecified
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows; Windows NT 5.1; en-US; rv:2.0b2pre) Gecko/20100704 Minefield/4.0b2pre
Build Identifier: Mozilla/5.0 (Windows; Windows NT 5.1; en-US; rv:2.0b2pre) Gecko/20100704 Minefield/4.0b2pre

When you apply a ClipPath to a foreignObject Element, the element is well clipped but the pointer events is captured over the clipped areas. As I know, the SVG specification said that it should not.

(See http://www.w3.org/TR/SVG/interact.html#PointerEventsProperty)

Reproducible: Always

Steps to Reproduce:
1. Open the joined test case
2. click on the white part of the red squares
 
Actual Results:  
A script alert is shown

Expected Results:  
No script alert should be visible
(Reporter)

Comment 1

7 years ago
Created attachment 456058 [details]
Testcase for foreignObject + ClipPath + pointer-events 

Red square show the issue, Green square show how it works well with regular SVG elements.
(Assignee)

Comment 2

7 years ago
Created attachment 456098 [details] [diff] [review]
patch
Assignee: nobody → longsonr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #456098 - Flags: review?(roc)
(Assignee)

Updated

7 years ago
OS: Windows XP → All
Hardware: x86 → All
Attachment #456098 - Flags: review?(roc) → review+
(Assignee)

Comment 3

7 years ago
pushed http://hg.mozilla.org/mozilla-central/rev/7aa313a80930
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
(Assignee)

Comment 4

7 years ago
Thanks for the testcase Jeremie. Very helpful.
(Assignee)

Updated

7 years ago
Blocks: 580983
You need to log in before you can comment on or make changes to this bug.