Closed Bug 721454 Opened 13 years ago Closed 11 years ago

Events not dispatched to pointer-events: "auto" for elements inside a containing iframe of "none"

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: Mardak, Unassigned)

Details

Attachments

(1 file)

I'm trying to stack (xul:stack) two xul:browsers on top of each other with the one on top partially transparent to allow clicks to the bottom browser in the transparent areas. Setting pointer-events: none; on the top browser will let clicks through to the bottom one, but setting pointer-events: auto; on some of the elements in the top browser doesn't restore events.

This also happens for html iframe content that have "auto" but the containing iframe is "none". See attached testcase where the first 2 examples have the iframe either indirectly/inherited or directly have pointer-events: none; while the content has pointer-events: auto; but gets no events. The last example has a parent with "none" but the iframe explicitly sets "auto" so its contents are clickable.
pointer-events comes from SVG which doesn't have z-index so if <rect id="a"> after <rect id="b"> it's on top. Thus you apply pointer-events="none" to a and you can click b but a and b would be siblings not parent/children. 

If you apply it to a container as you have then all the children are ignored because the container itself is ignored.

Think of it like display="none". In that case setting the children of display="none" to display="block" doesn't make them appear.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: