Bug 136886 - webkit doesn't redraw an element that *was* hidden with :empty display: none
Summary: webkit doesn't redraw an element that *was* hidden with :empty display: none
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 05:47 PDT by Andrew Paprotsky
Modified: 2022-07-14 09:57 PDT (History)
4 users (show)

See Also:


Attachments
reproducible test case (578 bytes, text/html)
2014-09-17 05:47 PDT, Andrew Paprotsky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Paprotsky 2014-09-17 05:47:13 PDT
1. Create a non-empty element with the following style applied :empty {display: none}
2. Remove all children of the element or simply set innerHTML to an empty string.
3. At this point the element is hidden.
4. Add some children to the element or set innerHTML to a non-empty string.
5. The element is still hidden.

See the attachment for a reproducible test case.
Comment 1 Andrew Paprotsky 2014-09-17 05:47:45 PDT
Created attachment 238251 [details]
reproducible test case
Comment 2 Brent Fulgham 2022-07-14 09:57:14 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.