[Webkit-unassigned] [Bug 89748] New: WebKit allows implied universal selector following CSS namespace

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 22 00:55:47 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=89748

           Summary: WebKit allows implied universal selector following CSS
                    namespace
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jim.allardice+webkit at gmail.com


Created an attachment (id=148976)
 --> (https://bugs.webkit.org/attachment.cgi?id=148976&action=review)
Basic test case

WebKit seems to interpret a namespace followed by a pseudo-class as a namespaced universal selector followed by a pseudo-class:

*|:first-child { color: red } /* Works in WebKit, does not work anywhere else */

According to http://www.w3.org/TR/selectors/ this should not be valid (see the grammar and the following excerpt):

If a universal selector represented by * (i.e. without a namespace prefix) is not the only component of a sequence of simple selectors selectors or is immediately followed by a pseudo-element, then the * may be omitted and the universal selector's presence implied.

To reproduce, open the attached file in latest Safari or Chrome (the text will appear red) then latest Firefox or Internet Explorer 9 (the text will appear the in the default colour).

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