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

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.
Maybe

   | 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...

~fantasai

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