support compound selectors and complex selectors within :not() negation pseudo-class

NEW
Unassigned

Status

()

Core
CSS Parsing and Computation
P5
normal
4 years ago
11 days ago

People

(Reporter: ucavus, Unassigned)

Tracking

(Blocks: 2 bugs, {dev-doc-needed})

Trunk
dev-doc-needed
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [parity-safari][parity-webkit], URL)

Attachments

(1 attachment)

282 bytes, text/html
Details
(Reporter)

Description

4 years ago
Created attachment 825659 [details]
not bug.html

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130910160258

Steps to reproduce:

Created a simple CSS selector using an element and a class inside a :not(). It seems to work fine if the :not() contains only a single element or class, but fails when they're combined.


Actual results:

got this in the console:
Timestamp: 2013-11-01 12:02:58
Warning: Missing closing ')' in negation pseudo-class '.'.  Ruleset ignored due to bad selector.
Source File: ***/not%20bug.html
Line: 6, Column: 9
Source Code:
   :not(p.foo) {


Expected results:

rule parsed and style applied
We don't yet support compound selectors like "p.foo" inside :not().  CSS Selectors Level 3 allows only simple selectors (like "p" or ".foo" but not both together), while Level 4 relaxes this restriction.

http://dev.w3.org/csswg/selectors3/#negation
http://dev.w3.org/csswg/selectors4/#negation
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Priority: -- → P5
Hardware: x86_64 → All
Summary: css not parse → support compound selectors or complex selectors within :not() negation pseudo-class
Version: unspecified → Trunk
(Reporter)

Comment 2

4 years ago
Thanks.
Sorry about the **** summary. Looks like the one I wrote reverted to the search terms I began with.

Updated

4 years ago
Duplicate of this bug: 953411

Updated

4 years ago
Blocks: 693083
Duplicate of this bug: 1123243
Summary: support compound selectors or complex selectors within :not() negation pseudo-class → support compound selectors and complex selectors within :not() negation pseudo-class
Keywords: dev-doc-needed

Updated

4 months ago
Whiteboard: [parity-safari][parity-webkit]
Blocks: 913153
You need to log in before you can comment on or make changes to this bug.