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

fix(css/parser): <general-enclosed> parsing + fix todo #6380

Merged
merged 5 commits into from Nov 10, 2022

Conversation

alexander-akait
Copy link
Collaborator

Description:

Fix <general-enclosed> parsing with whitespaces + fix TODO

BREAKING CHANGE:

No

Related issue (if exists):

No

@@ -45,7 +45,7 @@ div {
background: url('\"foo\"');
}
.bar {
background: url(http://example.com/image.svg param(--color var(--primary-color);
background: url(http://example.com/image.svg param(--color var(--primary-color)));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now we don't lose ) in declarations when we have BadUrl or BadStr

@@ -1,5 +1,5 @@

x Expected function or '(' token
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we should avoid using token in error messages, because developers can don't know what is token

@kdy1 kdy1 self-assigned this Nov 9, 2022
@kdy1 kdy1 added this to the Planned milestone Nov 9, 2022
kdy1
kdy1 previously approved these changes Nov 9, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_css_parser

@kdy1 kdy1 enabled auto-merge (squash) November 9, 2022 01:22
@alexander-akait
Copy link
Collaborator Author

@kdy1 Rebased 👍

@kdy1 kdy1 merged commit d18eaf1 into swc-project:main Nov 10, 2022
@alexander-akait alexander-akait deleted the fix-todo branch November 10, 2022 16:58
@kdy1 kdy1 modified the milestones: Planned, v1.3.15 Nov 12, 2022
@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants