kennethormandy / normalize-opentype.css

Adds OpenType features—ligatures, kerning, and more—to Normalize.css.
http://kennethormandy.com/journal/normalize-opentype-css
MIT License
791 stars 29 forks source link

Use `inherit` instead of carrying settings down manually #8

Open kennethormandy opened 10 years ago

kennethormandy commented 10 years ago

Need to test this more, but apparently this works in some places:

body {
  font-feature-settings: "kern" 1, "smcp" 1;
}

p {
  font-feature-settings: "smcp"; /* This acts like you wrote `"kern" 0;` which is annoying */
  font-feature-settings: "smcp" 1, "smcp" 1; /* What I’m doing now */
  font-feature-settings: "kern" inherit, "smcp" inherit; /* Verbose, but easier to maintain. */
}