NEW 264733
element.checkVisibility() does not work for unslotted elements
https://bugs.webkit.org/show_bug.cgi?id=264733
Summary element.checkVisibility() does not work for unslotted elements
Max Schmitt
Reported 2023-11-13 05:06:43 PST
https://commits.webkit.org/270425@main enabled element.checkVisibility() by default. After this the following evaluates to `true` while in Firefox and Chromium it evaluates to `false`: ```html <details> <summary>Open form</summary> <input id="two"/> </details> <script> alert(document.querySelector("#two").checkVisibility({ checkOpacity: false, // default checkVisibilityCSS: false, // default })) </script> ```
Attachments
Radar WebKit Bug Importer
Comment 1 2023-11-20 05:07:13 PST
Tim Nguyen (:ntim)
Comment 2 2024-11-23 11:27:16 PST
This was fixed for details/summary by bug 157323, but I think the issue remains for unslotted contents in general.
Note You need to log in before you can comment on or make changes to this bug.