Skip to content

Allow adjacent forward slashes in plain CSS expressions#2190

Merged
nex3 merged 2 commits intomainfrom
adjacent-slashes
Mar 12, 2024
Merged

Allow adjacent forward slashes in plain CSS expressions#2190
nex3 merged 2 commits intomainfrom
adjacent-slashes

Conversation

@nex3
Copy link
Copy Markdown
Contributor

@nex3 nex3 commented Mar 7, 2024

@nex3 nex3 requested a review from jathak March 7, 2024 23:38
CssParser(super.contents, {super.url, super.logger});

void silentComment() {
bool silentComment() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a reason why we allow silent comments at all when parsing plain CSS?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We don't, but we do want to throw an explicit error when we encounter them. This is particularly true because historically LibSass parsed .css files as SCSS and some frameworks took advantage of this, so there are definitely real world cases where the user needs a better error than whatever parsing failure they'd get in plain CSS.

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