Bug 264733

Summary: element.checkVisibility() does not work for closed details/summary 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   
Bug Depends on:    
Bug Blocks: 252223    

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>