[Webkit-unassigned] [Bug 116742] New: Negation selector (:not()) should support full complex selectors according to CSS4 Selectors draft.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 24 15:25:31 PDT 2013


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

           Summary: Negation selector (:not()) should support full complex
                    selectors according to CSS4 Selectors draft.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: james at cookiecrook.com
                CC: james at cookiecrook.com,
                    webkit-bug-importer at group.apple.com


Negation selector (:not()) should support full complex selectors according to CSS4 Selectors draft. 

Test case: The following throw syntax errors.

document.querySelectorAll('input:not([type="button"][value])'); /* Any input that does not have both attribute: value and type="button". */
document.querySelectorAll('input:not(label input)'); /* Any input that is not contained in a label ancestor. */
document.querySelectorAll('input:not(label>input)'); /* Any input that is not contained in a label parent. */


Quoting: http://dev.w3.org/csswg/selectors4/#negation

The negation pseudo-class, :not(), is a functional pseudo-class taking a selector list as an argument. It represents an element that is not represented by its argument.

In the fast Selectors profile, only lists of compound selectors are allowed within :not(): combinators are not allowed. In the complete profile, full complex selectors are allowed.

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