Closed
Description
Describe the bug
The following CSS fails
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
===========================================================
____ _ ____ ____ ____ _ _ _
| _ \| |__ _ __ / ___/ ___/ ___| | | (_)_ __ | |_
| |_) | '_ \| '_ \ | | \___ \___ \ | | | | '_ \| __|
| __/| | | | |_) | | |___ ___) |__) | | |___| | | | | |_
|_| |_| |_| .__/ \____|____/____/ |_____|_|_| |_|\__|
|_|
===========================================================
# Lint CSS string...
=> CSS string is not valid:
- Unexpected selector token "&" (line: 1, char: 111)
- Unterminated "selector" (line: 1, char: 126)
To Reproduce
vendor/bin/php-css-lint "@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');"
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: WSL2
- Version:
v4.1.1
Additional context
- Linter fails with
@import
ampersand in url #112 - This seems to be related to the semicolon
;
in the URL