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

[css3-fonts] font shorthand and font-synthesis, font-size-adjust

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 16 May 2013 16:50:16 -0700
Message-ID: <519570B8.6040500@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>
I don't think font-synthesis should be reset by the font shorthand.
It's typically something you want to set once at the top of the
document, and allow to inherit through the whole thing.

The 'font-size-adjust' property has a similar usage pattern,
especially wrt the 'auto' value. Since other values might be
less like that, I can see an argument for resetting it in the
shorthand. However, if we think it should be reset nonetheless,
that fact should be pointed out in a note in the 'font-size-adjust'
property, and a good practice example for using 'auto' included.

   | In this example, the 'auto' value is used to equalize
   | x-heights across fonts of the same nominal size:
   |   * { font-size-adjust: auto; }
   | Notice the universal selector: the property inherits, but
   | because it is reset by the 'font' shorthand, it must be
   | set on every element to reliably take effect across the whole
   | document. note that as a side-effect, this rule effectively
   | disables inheritance of 'font-size-adjust'.

Hm, given the awkwardness of that, I'm definitely leaning
towards leaving out of the 'font' shorthand...

Received on Thursday, 16 May 2013 23:50:48 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:27 UTC