[Webkit-unassigned] [Bug 188259] New: "display: none" ignored until unchecked/rechecked in devtools

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 08:25:04 PDT 2018


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

            Bug ID: 188259
           Summary: "display: none" ignored until unchecked/rechecked in
                    devtools
           Product: WebKit
           Version: Safari 11
          Hardware: All
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: daniel at self.agency

Created attachment 346382

  --> https://bugs.webkit.org/attachment.cgi?id=346382&action=review

screenshot of bug

I have an element that's default setting is "display: none;".

When the page first loads, it is properly hidden.

Then, using a JavaScript click event, the element style is changed to "display: contents;", showing the hidden content.

Clicking a close button should re-hide the content with an event that removes the "display: contents;" from the element style, returning it to its default state of "display: none;".

This works properly in Firefox and Chrome on desktop and iOS.

However in Safari on desktop and iOS, as well as Chrome on iOS, when you click the close button, WebKit properly removes "display: contents;" and returns to the state of "display: none;" but the element itself that should be hidden still appears on screen.

In the attached screenshot, you will see that the element highlighted in the devtools elements pane ("#award--body") is shown as "display: none;" in the styles panel, but still appears on screen.

You can see the bug in action here: https://youtu.be/B9fJP4BoijU.

-- 
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/20180802/ad00d7b4/attachment-0001.html>


More information about the webkit-unassigned mailing list