Fix false positives for ui-*
generic system font keywords in font-family-name-quotes
#6016
Labels
ui-*
generic system font keywords in font-family-name-quotes
#6016
What steps are needed to reproduce the bug?
font-family-name-quotes
rule toalways-unless-keyword
font-family
property:ui-serif
ui-sans-serif
ui-monospace
ui-rounded
What Stylelint configuration is needed to reproduce the bug?
How did you run Stylelint?
CLI with
stylelint style.css --config .stylelintrc
Which version of Stylelint are you using?
14.7.0
What did you expect to happen?
Stylelint would recognize
ui-monospace
et al. as a generic keyword that doesn't require quoting.What actually happened?
A warning was given stating that it expected quotes around
ui-monospace
.Does the bug relate to non-standard syntax?
No (see: https://www.w3.org/TR/css-fonts-4/#ui-serif-def and https://caniuse.com/extended-system-fonts).
Proposal to fix the bug
Add
ui-serif
,ui-sans-serif
,ui-monospace
, andui-rounded
to the list of generic font-family keywords such that they be recognized by rules such asfont-family-name-quotes
and any other relevant rules.The text was updated successfully, but these errors were encountered: