[Webkit-unassigned] [Bug 11385] New: CSS: :last-of-type selector is applied to all elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 23 02:56:03 PDT 2006


http://bugs.webkit.org/show_bug.cgi?id=11385

           Summary: CSS: :last-of-type selector is applied to all elements
           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 :last-of-type selector matches every element.

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 element is at least once the last element of a
certain type. 

Proper behavoir:
The selector should only match elements that are *really* the last of a certain
type. Once an element is no longer the last of a certain type, it should no
longer match the :last-of-type selector.


-- 
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