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

Nesting Module doesn't seem to be supported at the moment #54

Closed
Traveller23 opened this issue Dec 25, 2023 · 2 comments · Fixed by #55
Closed

Nesting Module doesn't seem to be supported at the moment #54

Traveller23 opened this issue Dec 25, 2023 · 2 comments · Fixed by #55

Comments

@Traveller23
Copy link

Traveller23 commented Dec 25, 2023

What is nesting module: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Using_CSS_nesting
Specification: https://www.w3.org/TR/css-nesting-1/

.outer1 .outer1-1 {
    .inner1 .inner1-1 {
        width: 1em;
    }

    .inner2 .inner2-1 {
        width: 1em;
    }
}

When I try to parse the above CSS with the following code, an error is returned:

rules = tinycss2.parse_stylesheet(css)
tinycss2.parse_declaration_list(rules[0].content)

The returned error:
2

The actual content of the content:
1

@Traveller23 Traveller23 changed the title Nesting Module doesn't seem to be supported at the moment? Nesting Module doesn't seem to be supported at the moment Dec 25, 2023
@liZe
Copy link
Member

liZe commented Dec 25, 2023

That would be great!

@liZe liZe mentioned this issue Feb 17, 2024
@liZe
Copy link
Member

liZe commented Feb 17, 2024

A pull request has been opened (#55), feedback is welcome!

@liZe liZe closed this as completed in #55 Feb 27, 2024
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

Successfully merging a pull request may close this issue.

2 participants