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

Pull childless @layer rules to the top of the output stylesheet #3843

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Apr 19, 2024

These rules are only allowed at the beginning of stylesheets. Allowing
them anywhere in Sass and moving them to the top of the output matches
the behavior of plain-CSS @import rules.

This is fast-track proposal. Although this does add an error when
multiple childless @layer rules are specified in the same
stylesheet, per sass/dart-sass#2225 that's not considered a breaking
change because it was already invalid CSS.

Closes #3842

These rules are only allowed at the beginning of stylesheets. Allowing
them anywhere in Sass and moving them to the top of the output matches
the behavior of plain-CSS `@import` rules.

Closes #3842
@nex3 nex3 requested a review from Goodwine April 19, 2024 23:05
@nex3 nex3 marked this pull request as draft April 20, 2024 00:22
@nex3 nex3 removed the request for review from Goodwine April 22, 2024 22:51
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.

SCSS @use vs CSS @layer Problems.... plz fixed.. this issues..
1 participant