[Webkit-unassigned] [Bug 11386] New: CSS: :only-child, :only-of-type is applied to all first children
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 23 03:09:53 PDT 2006
http://bugs.webkit.org/show_bug.cgi?id=11386
Summary: CSS: :only-child, :only-of-type is applied to all first
children
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
URL: http://www.css3.info/selectors-test/
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: niels.leenheer at gmail.com
Current behavoir:
The :only-child matches every first child and the :only-of-type selector
matches every first child of a new type.
Reason:
The reason for this is that every time a new element is added to the DOM, it is
checked to see if it matches one of the CSS selectors. Because the DOM is build
one element at a time, every first child is at least for a moment the only
child. The same applies to the first element of a certain type. It is at least
for a moment the only of that type.
Proper behavoir:
The :only-child selector should only match elements that are *really* the only
child. The :only-of-type selector should only match elements that are *really*
the only child of a certain type. Once an element is no longer the only, or the
only of a certain type, it should no longer match these selectors.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list