🐛 CSS parsing and Unicode point ranges #3172
Labels
A-Parser
Area: parser
L-CSS
Language: CSS
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
The
unicode-range
CSS descriptor accepts the following types of values:unicode-range: U+26;
)unicode-range: U+0025-00FF;
)unicode-range: U+4??;
)unicode-range: U+0025-00FF, U+4??;
)However, Biome does not seem to understand these data types.
Steps to reproduce the error
@font-face
entries which use theunicode-range
CSS descriptor. For example here I'm including the OpenSans font, and specifically the extended glyphs for the cyrillic and latin glyphs:biome check ./
The output in my case (line numbers ) is:
Line 7 in the output matches line 7 in the example, line 52 in the output matches line 18 in the example.
Further information for analysing the error
More specifically, Biome seems to interpret these entries as something else; if I remove the above
unicode-range
entries but have something like the following:and then run
biome check --fix ./
, the result is:Expected result
Unicode code points, code point ranges, wildcard ranges, and lists thereof should be recognised correctly and be formatted as such. For example, the original CSS should probably be formatted to something like:
Code of Conduct
The text was updated successfully, but these errors were encountered: