Closed Bug 1525255 Opened 5 years ago Closed 5 years ago

[CSS] Cannot overwrite pointer-events for <button>'s child elements

Categories

(Core :: DOM: Events, defect)

65 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox65 --- wontfix
firefox66 --- fixed
firefox67 --- fixed

People

(Reporter: ian.html, Assigned: smaug)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

Set "pointer-events: none" to a <button>, and then set "pointer-events: auto" on its child element.

Actual results:

The child element's pointer-events is not being overwrote as "auto".

Expected results:

The child element's pointer-events should have been overwritten as "auto".

Hi Ian Yang,

Please provide a simplified testcase so we can check this issue out.

Flags: needinfo?(ian.html)

(In reply to Timea Babos from comment #1)

Hi Ian Yang,

Please provide a simplified testcase so we can check this issue out.

Here is a simplified testcase: https://jsfiddle.net/ujpn9v0y/5/

Flags: needinfo?(ian.html)

Thanks for the testcase Ian!
Unfortunately, I still do not understand exactly what is the issue. If you could elaborate a bit or share a recording of how it should be and how it is currently that would be appreciated.

Flags: needinfo?(ian.html)

(In reply to Timea Babos from comment #3)

Thanks for the testcase Ian!
Unfortunately, I still do not understand exactly what is the issue. If you could elaborate a bit or share a recording of how it should be and how it is currently that would be appreciated.

Although the button has "pointer-events: none" and is unclickable, its child element which has "pointer-events: auto" should be clickable.

The issue is that its child element is being unclickable, too.

Flags: needinfo?(ian.html)

Thank again Ian, that helped :)

Reproduced the issue on Firefox Release 65.0 - I believe you see the issue on this Firefox version too.
Can't reproduce it on latest Beta nor Nightly, mozregression pointed out that this Bug 1512259 patch fixed it.

Can you also confirm if it is fixed on Beta or Nightly?

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Events
Ever confirmed: true
Flags: needinfo?(ian.html)
Product: Firefox → Core

(In reply to Timea Babos from comment #5)

Thank again Ian, that helped :)

Reproduced the issue on Firefox Release 65.0 - I believe you see the issue on this Firefox version too.
Can't reproduce it on latest Beta nor Nightly, mozregression pointed out that this Bug 1512259 patch fixed it.

Can you also confirm if it is fixed on Beta or Nightly?

I just tried the Beta and couldn't reproduce the issue. It appears that the Beta fixed the issue.

Flags: needinfo?(ian.html)

Glad to hear that. Closing this issue as Resolved: WorksForMe with the note that this will be fixed in the upcoming Release 66 version as it has been fixed in Beta and Nightly.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME

It should have been bug 1089326 which fixed this.

Blocks: 1089326
Resolution: WORKSFORME → FIXED
Assignee: nobody → bugs
You need to log in before you can comment on or make changes to this bug.