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

CSS @import with url modifiers gives unexpected results #3426

Closed
romainmenke opened this issue Oct 5, 2023 · 0 comments
Closed

CSS @import with url modifiers gives unexpected results #3426

romainmenke opened this issue Oct 5, 2023 · 0 comments

Comments

@romainmenke
Copy link

romainmenke commented Oct 5, 2023

This is not a critical issue.
No CSS that is valid today is broken because of this.


@import url('red.css' url-mod);

becomes :

@media url-mod) {
  /* contents of red.css */
}

URL modifiers are specified in css-values-4

It seems that the parser algorithm has a quirk where it stops after a string is encountered and that the remainder is considered to be a media query list.


This is irrelevant today, as stated at the beginning, but could become an issue in the future when specific url modifiers are added to the specification.

@evanw evanw closed this as completed in 47fc80b Oct 17, 2023
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

No branches or pull requests

1 participant