We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I specify multiple values for font-variant-numeric, PostCSS just copies them in font-feature-settings which makes feature declarations invalid.
font-variant-numeric
font-feature-settings
.lining-nums { font-variant-numeric: lining-nums; } .tabular-nums { font-variant-numeric: tabular-nums; } .tabular-and-lining-nums { font-variant-numeric: tabular-nums lining-nums; }
.lining-nums { font-feature-settings: "lnum"; font-variant-numeric: lining-nums; } .tabular-nums { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; } .tabular-and-lining-nums { font-feature-settings: "tnum", "lnum"; font-variant-numeric: tabular-nums lining-nums; }
.lining-nums { font-feature-settings: "lnum"; font-variant-numeric: lining-nums; } .tabular-nums { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; } .tabular-and-lining-nums { font-feature-settings: tabular-nums lining-nums; font-variant-numeric: tabular-nums lining-nums; }
https://preset-env.cssdb.org/playground/#JTdCJTIyc291cmNlJTIyJTNBJTIyLmxpbmluZy1udW1zJTIwJTdCJTVDbiUyMCUyMGZvbnQtdmFyaWFudC1udW1lcmljJTNBJTIwbGluaW5nLW51bXMlM0IlNUNuJTdEJTVDbiU1Q24udGFidWxhci1udW1zJTIwJTdCJTVDbiUyMCUyMGZvbnQtdmFyaWFudC1udW1lcmljJTNBJTIwdGFidWxhci1udW1zJTNCJTVDbiU3RCU1Q24lNUNuLnRhYnVsYXItYW5kLWxpbmluZy1udW1zJTIwJTdCJTVDbiUyMCUyMGZvbnQtdmFyaWFudC1udW1lcmljJTNBJTIwdGFidWxhci1udW1zJTIwbGluaW5nLW51bXMlM0IlNUNuJTdEJTVDbiUyMiUyQyUyMmNvbmZpZyUyMiUzQSU3QiUyMmJyb3dzZXJzJTIyJTNBJTVCJTIyZGVmYXVsdHMlMjIlNUQlMkMlMjJtaW5pbXVtVmVuZG9ySW1wbGVtZW50YXRpb25zJTIyJTNBMCUyQyUyMnN0YWdlJTIyJTNBMiUyQyUyMmxvZ2ljYWwlMjIlM0ElN0IlMjJpbmxpbmVEaXJlY3Rpb24lMjIlM0ElMjJsZWZ0LXRvLXJpZ2h0JTIyJTJDJTIyYmxvY2tEaXJlY3Rpb24lMjIlM0ElMjJ0b3AtdG8tYm90dG9tJTIyJTdEJTJDJTIycHJlc2VydmUlMjIlM0F0cnVlJTdEJTdE
npx @csstools/csstools-cli <plugin-name> minimal-example.css
N/A
No response
PostCSS Preset Env
10.1.3
macOS
23.5.0
The text was updated successfully, but these errors were encountered:
Hi @naiyerasif
I think this is the same issue as postcss/postcss-font-variant#16
postcss-preset-env contains that plugin.
postcss-preset-env
I will take a closer look at this feature and see if we can improve things.
Sorry, something went wrong.
No branches or pull requests
Bug description
When I specify multiple values for
font-variant-numeric
, PostCSS just copies them infont-feature-settings
which makes feature declarations invalid.Source CSS
Expected CSS
Actual CSS
Playgound example
https://preset-env.cssdb.org/playground/#JTdCJTIyc291cmNlJTIyJTNBJTIyLmxpbmluZy1udW1zJTIwJTdCJTVDbiUyMCUyMGZvbnQtdmFyaWFudC1udW1lcmljJTNBJTIwbGluaW5nLW51bXMlM0IlNUNuJTdEJTVDbiU1Q24udGFidWxhci1udW1zJTIwJTdCJTVDbiUyMCUyMGZvbnQtdmFyaWFudC1udW1lcmljJTNBJTIwdGFidWxhci1udW1zJTNCJTVDbiU3RCU1Q24lNUNuLnRhYnVsYXItYW5kLWxpbmluZy1udW1zJTIwJTdCJTVDbiUyMCUyMGZvbnQtdmFyaWFudC1udW1lcmljJTNBJTIwdGFidWxhci1udW1zJTIwbGluaW5nLW51bXMlM0IlNUNuJTdEJTVDbiUyMiUyQyUyMmNvbmZpZyUyMiUzQSU3QiUyMmJyb3dzZXJzJTIyJTNBJTVCJTIyZGVmYXVsdHMlMjIlNUQlMkMlMjJtaW5pbXVtVmVuZG9ySW1wbGVtZW50YXRpb25zJTIyJTNBMCUyQyUyMnN0YWdlJTIyJTNBMiUyQyUyMmxvZ2ljYWwlMjIlM0ElN0IlMjJpbmxpbmVEaXJlY3Rpb24lMjIlM0ElMjJsZWZ0LXRvLXJpZ2h0JTIyJTJDJTIyYmxvY2tEaXJlY3Rpb24lMjIlM0ElMjJ0b3AtdG8tYm90dG9tJTIyJTdEJTJDJTIycHJlc2VydmUlMjIlM0F0cnVlJTdEJTdE
Does it happen with
npx @csstools/csstools-cli <plugin-name> minimal-example.css
?N/A
Debug output
No response
Extra config
No response
What plugin are you experiencing this issue on?
PostCSS Preset Env
Plugin version
10.1.3
What OS are you experiencing this on?
macOS
Node Version
23.5.0
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: