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 covering CSS imports with layer conditions #1787

Merged
merged 4 commits into from May 19, 2022

Conversation

stof
Copy link
Contributor

@stof stof commented Apr 16, 2022

See sass/sass#3285

skip dart-sass

nex3 added 2 commits May 17, 2022 19:04
This focuses more generally on testing the limits of unknown
identifiers and functions, rather than "layer" specifically.
<===>
================================================================================
<===> media/list/after_feature/input.scss
@import "a" (b: c), (d: e) and (f: g), h;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this looks wrong to me. The , separates several ImportArgument, and (d: e) is not a valid ImportUrl

Copy link
Contributor

Choose a reason for hiding this comment

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

This is valid CSS! An @import may be followed by a <media-query-list>, and (b: c), (d: e) and (f: g), h is a valid <media-query-list>.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The the spec is ambiguous when allowing multiple ImportArgument

@nex3 nex3 merged commit c3ee83b into sass:main May 19, 2022
@stof stof deleted the css_layer_import branch May 20, 2022 08:41
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.

None yet

3 participants