[Webkit-unassigned] [Bug 281995] New: Calling element.focus() on an element inside an element with aria-modal="true" will show :focus-visible styles
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 23 10:53:11 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=281995
Bug ID: 281995
Summary: Calling element.focus() on an element inside an
element with aria-modal="true" will show
:focus-visible styles
Product: WebKit
Version: Safari 18
Hardware: All
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nikita.ourazbaev at gmail.com
CC: koivisto at iki.fi
Created attachment 473020
--> https://bugs.webkit.org/attachment.cgi?id=473020&action=review
Screen recording on Safari 18.0.1 (20619.1.26.31.7) on macOS 15.0.1 (24A348)
When element.focus() is called on an element that is a child of an element with aria-modal="true", :focus-visible styles are shown.
Expected behaviour is that :focus-visible styles should not be dependent on whether the element has aria-modal="true" or not, and in this case, should not be shown.
Minimal reproduction:
https://codepen.io/magiclantern/pen/poMdzZr/eed5ca142856964aa6c8ea76d57a86f2
--
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/20241023/79304e78/attachment-0001.htm>
More information about the webkit-unassigned
mailing list