- From: John Daggett <jdaggett@mozilla.com>
- Date: Sun, 19 May 2013 20:21:23 -0700 (PDT)
- To: fantasai <fantasai.lists@inkedblade.net>
- Cc: www-style@w3.org
fantasai wrote: > A related issue is, since the property 'font-variant' overrides > the descriptor 'font-variant', > elem { font-variant: normal; } > cannot reset features flagged via the descriptor; as the initial > value, it has to leave them untouched. What do you do if you want to > turn something off? E.g. > > @font-face { > font-family: xyz; src: ...; > font-variant: historical-forms; > } > code { > font-variant: /* how to turn off historical forms? */ > } > > Or is this not a concern? The 'font-variant' and 'font-feature-settings' are intended as a way to have site-wide defaults for a specific font, for example to use a specific set of character variants consistently. As such, their use is really for features that don't need to be overriden for specific elements. If it's really necessary in some specific case, 'font-feature-settings' can override these: code { font-feature-settings: 'hist' off; } Another way to think of it is that the descriptors are *not* part of the cascade, it's the equivalent of asking a font vendor for a custom version of a font with a different set of default glyphs. Regards, John Daggett
Received on Monday, 20 May 2013 03:21:54 UTC