Bug 264733

Summary: element.checkVisibility() does not work for unslotted elements
Product: WebKit Reporter: Max Schmitt <max>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: akeerthi, dpino, karlcow, mike, ntim, webkit-bug-importer, yurys
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: macOS 14   

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.