Do I need to specify the same font-feature-settings again?
#662
-
|
Currently on the website it is mentioned that "If you're making a web thing, you can use the following HTML and CSS" :root {
font-family: Inter, sans-serif;
font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
:root {
font-family: InterVariable, sans-serif;
}
}If I am using Contextual Alternatives do I need to re-type @supports (font-variation-settings: normal) {
:root {
font-family: InterVariable, sans-serif;
font-feature-settings: 'liga' 1, 'calt' 1, 'cv01', 'cv03', 'cv04', 'cv08', 'cv09', 'cv10';
}
}or only this |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Yes. The CSS property You can experiment with |
Beta Was this translation helpful? Give feedback.
-
|
@rsms I would suggest that It is now more compatible in browsers. https://caniuse.com/mdn-css_at-rules_font-feature-values |
Beta Was this translation helpful? Give feedback.


Yes. The CSS property
font-feature-settingsreplaces the set of features, it doesn't cascade.You can experiment with
@font-feature-values(last time I tried it, my web browser didn't support it)