Bug 264733
Summary: | element.checkVisibility() does not work for unslotted elements | ||
---|---|---|---|
Product: | WebKit | Reporter: | Max Schmitt <max> |
Component: | CSS | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/118648432>
Tim Nguyen (:ntim)
This was fixed for details/summary by bug 157323, but I think the issue remains for unslotted contents in general.