[Webkit-unassigned] [Bug 75294] New: :empty still matches after content is added to element with display: none
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 28 00:22:00 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=75294
Summary: :empty still matches after content is added to element
with display: none
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://jsfiddle.net/gtXYC/1/
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: webkit at stormwinds.ch
Compare the following examples (using innerHTML to add content):
1) http://jsfiddle.net/gtXYC/0/ (works)
2) http://jsfiddle.net/gtXYC/1/ (broken)
Same problem using appendChild() instead of innerHTML:
3) http://jsfiddle.net/gtXYC/2/ (works)
4) http://jsfiddle.net/gtXYC/3/ (broken)
Examples 1/3: The div's background-color changes based on whether the div is empty or not.
Examples 2/4: Same situation, except that the visibility of the div should change. The problem is that :empty still matches after content is added to the div.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list