W3C home > Mailing lists > Public > www-style@w3.org > August 2015

Re: [css3-fonts] "inherit" value of font-feature-settings

From: John Daggett <jdaggett@mozilla.com>
Date: Wed, 12 Aug 2015 13:38:03 +0900
Message-ID: <CALYZoVPLRjnjt+4nP0NV-GtAQtpLr92XVzL6jfV2zw+-Mk=M6A@mail.gmail.com>
To: "Myles C. Maxfield" <mmaxfield@apple.com>
Cc: www-style list <www-style@w3.org>
Myles Maxfield wrote:

> The CSS3 fonts spec defines the font-feature-settings property to be
> inherited. Because of this, it's easy for an inner element which wants
> to use some font feature to clobber some other font feature specified
> on an ancestor, which is probably not what authors want or intend. It
> would be better if font-feature-settings performed a union between the
> elements specified style and its inherited style. Removing the use of
> font features can be accomplished with the "normal" keyword. Please
> note that there is precedence for this behavior; please see the
> text-decoration property.

Hmmm, maybe I'm not understanding you correctly but I don't think
there's a way to "union" property values in the CSS cascade. Better for
authors to use the 'font-variant' subproperties which allow different
types of features to inherit differently.

‚Äč
Received on Wednesday, 12 August 2015 04:38:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 12 August 2015 04:38:32 UTC