We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
font-display
unicode-range
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
Describe the bug
The following CSS fails
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/poppins/v23/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
=========================================================== ____ _ ____ ____ ____ _ _ _ | _ \| |__ _ __ / ___/ ___/ ___| | | (_)_ __ | |_ | |_) | '_ \| '_ \ | | \___ \___ \ | | | | '_ \| __| | __/| | | | |_) | | |___ ___) |__) | | |___| | | | | |_ |_| |_| |_| .__/ \____|____/____/ |_____|_|_| |_|\__| |_| =========================================================== # Lint CSS string... => CSS string is not valid: - Unknown CSS property "font-display" (line: 1, char: 78) - Unknown CSS property "unicode-range" (line: 1, char: 193) - Unterminated "property content" (line: 1, char: 295)
To Reproduce
vendor/bin/php-css-lint "@font-face{font-family:Poppins;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/poppins/v23/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}"
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):
v4.1.2
Additional context
The text was updated successfully, but these errors were encountered:
@yt-topicus I should works with new release: https://github.com/neilime/php-css-lint/releases/tag/v5.0.0
Sorry, something went wrong.
@neilime I will check it out and test it. Thank you for your effort for making it PHP 8.4 compatible as well 👍
@neilime I've bumped to ^5.0 (5.0.0) and still see the same error as before.
^5.0
5.0.0
=========================================================== ____ _ ____ ____ ____ _ _ _ | _ \| |__ _ __ / ___/ ___/ ___| | | (_)_ __ | |_ | |_) | '_ \| '_ \ | | \___ \___ \ | | | | '_ \| __| | __/| | | | |_) | | |___ ___) |__) | | |___| | | | | |_ |_| |_| |_| .__/ \____|____/____/ |_____|_|_| |_|\__| |_| =========================================================== # Lint CSS string... => CSS string is not valid: - Unknown CSS property "font-display" (line: 1, char: 78) - Unknown CSS property "src" (line: 1, char: 87) - Unknown CSS property "unicode-range" (line: 1, char: 193)
I see, those are not css property but "@font-face" properties.
We must implement this, scrap accepted properties for at-rules, adapt the property linter
neilime
When branches are created from issues, their pull requests are automatically linked.
Describe the bug
The following CSS fails
To Reproduce
vendor/bin/php-css-lint "@font-face{font-family:Poppins;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/poppins/v23/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}"
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):
v4.1.2
Additional context
The text was updated successfully, but these errors were encountered: