WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
227112
Adding a class to an element with pointer-events: none does not result in a color change
https://bugs.webkit.org/show_bug.cgi?id=227112
Summary
Adding a class to an element with pointer-events: none does not result in a c...
Victor Sheyanov
Reported
2021-06-17 01:21:42 PDT
When element has a class with `color: any`, adding a new class with another color and `pointer-events: none` (disabling button), does not result in a text color change.
https://codepen.io/vsheyanov/pen/PopVGWB
Reproduced: Safari 14.1.1 (16611.2.7.1.4) Not reproduced: Safari 14.0.3, Chrome In the CodePen above clicking the button should change button color, but it does not change. But, if you click it once (color should be changed) and hover over the button, color will change. So basically hovering over the button paints correct color.
https://prnt.sc/15oryff
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2021-06-19 12:34:42 PDT
I cannot reproduce this using macOS 11.5 beta (Safari 16611.3.7). Could you please try with a beta and/or with Safari Technology Preview?
Victor Sheyanov
Comment 2
2021-06-21 00:20:19 PDT
Yes, in Safari Technology preview it's fixed. Looks like it's fixed there. Looking forward to seeing this fix in production.
Alexey Proskuryakov
Comment 3
2021-06-21 10:07:54 PDT
Thank you for verifying it!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug