Bug 264733 - element.checkVisibility() does not work for closed details/summary elements
Summary: element.checkVisibility() does not work for closed details/summary elements
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified macOS 14
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks: 252223
  Show dependency treegraph
 
Reported: 2023-11-13 05:06 PST by Max Schmitt
Modified: 2023-11-20 05:07 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Schmitt 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>
```
Comment 1 Radar WebKit Bug Importer 2023-11-20 05:07:13 PST
<rdar://problem/118648432>