W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: [css3-fonts] "font-feature-settings: none" shorthand?

From: John Daggett <jdaggett@mozilla.com>
Date: Wed, 29 May 2013 19:30:24 -0700 (PDT)
To: W3C Style <www-style@w3.org>
Message-ID: <1653169878.18581802.1369881024620.JavaMail.root@mozilla.com>

Tab Atkins wrote:

> > It would be useful to have a shorthand on font-feature-settings
> > that is the same as enumerating all features and specifying 'off'
> > for each feature.
> Agreed.  As a general principle, any list-valued property should
> accept "none".

Not sure this makes sense as a general principle. I think in general
it only makes sense in the context of a property where 'normal'
implies "do something" rather than "do nothing", which is only a small
minority of CSS properties.

However, in this case having a 'none' value is probably a bad idea.
Many OpenType properties that would be enabled by default or enabled
for certain scripts should *not* be disabled unless there's a very
good reason to do so.  For example, required ligatures in Arabic
('rlig').  Providing a 'none' value is just inviting disaster in the
hands of an author who doesn't understand the minutiae of the OpenType
model.  For authors that explicitly want to disable required features,
that's still possible.


John Daggett
Received on Thursday, 30 May 2013 02:30:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:11 UTC