[Webkit-unassigned] [Bug 251000] New: visibility:visible child of visibility:hidden button remains invisible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 23 01:51:49 PST 2023


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

            Bug ID: 251000
           Summary: visibility:visible child of visibility:hidden button
                    remains invisible
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: account+webkit-bugzilla at boermans.name
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

When `visibility:hidden;` is applied to an element, I expect visibility of child elements with `visibility:visible` to be restored.

In Release 161 (Safari 16.4, WebKit 18615.1.17.6) this does not work as expected when the hidden parent element is a `<button>`, e.g.:

    <button style="visibility: hidden">
      <b style="visibility: visible">Remains hidden</b>
    </button>

Test page: 
https://jumpy-exciting-weeder.glitch.me/

Practical use case for this pattern: 
https://www.scottohara.me/blog/2022/11/07/responsive-accessibility.html

-- 
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/20230123/b05d1a69/attachment.htm>


More information about the webkit-unassigned mailing list