[Webkit-unassigned] [Bug 264733] New: element.checkVisibility() does not work for closed details/summary elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 13 05:06:43 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=264733

            Bug ID: 264733
           Summary: element.checkVisibility() does not work for closed
                    details/summary elements
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: max at schmitt.mx

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>
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231113/7b002760/attachment.htm>


More information about the webkit-unassigned mailing list