Bug 79730
Summary: | Dynamically adding content to an element does not remove the :empty styling | ||
---|---|---|---|
Product: | WebKit | Reporter: | Gabriele <gpetrioli> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | gpetrioli, noel.gordon |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://jsfiddle.net/gaby/BSbEw/ |
Gabriele
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5 / Chrome: FAIL
Firefox 4.x: OK
IE 7/8/9: (7/8 FAIL) - (9 OK)
What steps will reproduce the problem?
1.set an :empty CSS rule, for some element , with display:none
2.dynamically set the content of that element with javascript
What is the expected result?
Once content is added dynamically the element should lose the :empty styling
What happens instead?
The element remains display:none
It is similar to https://bugs.webkit.org/show_bug.cgi?id=26570 but for dynamic content..
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
noel gordon
*** This bug has been marked as a duplicate of bug 79734 ***