Skip to content

@import does not work if url contains ';' #71

@steffanhalv

Description

@steffanhalv

Expected Behaviour

This should be parsed correctly

let demo = cssCompiler.parse(`
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&display=swap');
.test {
  background: red;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
`)

console.log('demo', demo)

Actual Behaviour

`@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300``

Becomes the first declaration and 400;500;700;900&display=swap')the second.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Run the code above

Platform and Version

4.0.1

Sample Code that illustrates the problem

Look ahead

Logs taken while reproducing problem

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions