[Webkit-unassigned] [Bug 249706] New: The :checked pseudoselector styles not applied immediately for slotted input element. Keyboard interaction only.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 21 03:45:07 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=249706
Bug ID: 249706
Summary: The :checked pseudoselector styles not applied
immediately for slotted input element. Keyboard
interaction only.
Product: WebKit
Version: Safari 15
Hardware: Mac (Intel)
OS: macOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: istvantutto at gmail.com
Hey team!
I've noticed that a checkbox element's :checked state styles will not be immediately applied when using a keyboard (SPACE) to select it and the styles are coming from within a ShadowDom's `::slotted(...)` selector. The styles will be applied after blur event only. The pointer interaction works as expected and all other major browsers handle the keyboard event as well.
Demonstration in link:
https://codepen.io/istutto/pen/eYjmywN
Note, that the above mentioned case will be resolved in Safari as well if the following empty rule as added into the light-DOM.
```css
input[type=checkbox]:checked {}
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221221/f0a111b0/attachment.htm>
More information about the webkit-unassigned
mailing list