Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested pseudo-classes cause an error. #1276

Closed
nathan-osman opened this issue Apr 16, 2013 · 2 comments
Closed

Nested pseudo-classes cause an error. #1276

nathan-osman opened this issue Apr 16, 2013 · 2 comments

Comments

@nathan-osman
Copy link

I attempted to compile the following CSS with less 1.3.0:

div:not(:nth-child(1)) {
    color: red;
}

However, I received the following error:

ParseError: Syntax Error on line 1 in /tmp/error.css:1:21
1 div:not(:nth-child(1)) {

The above rule is indeed valid CSS according to the W3C:

"Pseudo-classes are allowed anywhere in selectors..."
"...while others can be applied simultaneously to the same element."

Entering it into the W3C Markup Validator results in a clean pass.

@lukeapage
Copy link
Member

Fixed in 1.4.0 beta

@lukeapage
Copy link
Member

actually, also fixed in 1.3.3 (stable)

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

No branches or pull requests

2 participants