Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Add support for CSS selector level 4 :not() #106

Closed
MoOx opened this issue Apr 28, 2015 · 5 comments
Closed

Add support for CSS selector level 4 :not() #106

MoOx opened this issue Apr 28, 2015 · 5 comments

Comments

@MoOx
Copy link
Owner

MoOx commented Apr 28, 2015

In css3, not handle on selector only. Now it can take multiple values

The :not() pseudo-class first appeared in CSS3, when it only allowed a maximum of 1 simple selector as an argument. In CSS4, it can take a list of selectors as an argument. The styles are applied to the element which is not represented by the passed argument.

http://css4.rocks/css4-selectors/negation-pseudo-class.php

So I guess we can transform this

p:not(:first-child, .special)
{}

into

p:not(:first-child),
p:not(.special)
{}
@kud
Copy link

kud commented Apr 28, 2015

👍

@magsout
Copy link
Contributor

magsout commented Apr 29, 2015

👍

@MoOx
Copy link
Owner Author

MoOx commented Apr 30, 2015

@MoOx
Copy link
Owner Author

MoOx commented May 1, 2015

Closed by 64b903f

@MoOx MoOx closed this as completed May 1, 2015
@MoOx
Copy link
Owner Author

MoOx commented May 1, 2015

Released as 1.4.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants