Skip to content

Fix unit-no-unknown false positives for unicode-range descriptors#6892

Merged
romainmenke merged 2 commits intomainfrom
fix-unit-no-unknown-false-positives-for-unicode-range-descriptors--sympathetic-geoffroys-tamarin-17b7c2b65a
Jun 5, 2023
Merged

Fix unit-no-unknown false positives for unicode-range descriptors#6892
romainmenke merged 2 commits intomainfrom
fix-unit-no-unknown-false-positives-for-unicode-range-descriptors--sympathetic-geoffroys-tamarin-17b7c2b65a

Conversation

@romainmenke
Copy link
Copy Markdown
Member

Which issue, if any, is this issue related to?

Closes #6891

Is there anything in the PR that needs further explanation?

I forgot about <urange> productions when migrating rules to @csstools/css-tokenizer.

Parsing <urange> requires special handling and should only be done when inside a context that expects such values.

I've added a helper (isUnicodeRangeDescriptor) to make it easier for rules to skip @font-face { unicode-range: U+0100-024F; }

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Fix unit-no-unknown false positives for unicode-range descriptors

2 participants