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

Add specs for at-rules in nested imports #1429

Merged
merged 2 commits into from
Jul 12, 2019
Merged

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jul 11, 2019

See sass/dart-sass#755

[skip dart-sass]

Copy link

@nshahan nshahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with confirmation of one question.

@b {c: d}

<===> at_rule/declaration_child/output.css
@b {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the expectation here but just want to confirm that the @b should be moved to top level here but not when it is childless?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. An at-rule with children is assumed to behave similar to @media/@supports et al where browsers expect it to appear at the root and contain style rules.

@nex3 nex3 merged commit a62d330 into master Jul 12, 2019
@nex3 nex3 deleted the nested-import-keyframes branch July 12, 2019 00:55
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 this pull request may close these issues.

2 participants