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
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.
Created attachment 456098 [details] [diff] [review] patch
Thanks for the testcase Jeremie. Very helpful.