Re: A CSS equivalent of HTML's DOCTYPE trigger

What about extending @supports for this? Something like...

@supports ( font-family: 'Avenir' ) {
  p { margin: 0.6em 0; }
  article { padding: 12px 6px; }
  etc...
}

On 10 January 2012 08:28, Matthew Wilcox <elvendil@gmail.com> wrote:
> Interesting, thanks Tab.
>
> The reason I brought it up was I can't see how, if we decided it was worth it, we'd apply a fix to the issue of font handling I brought up in CSS & Type thread.
>
> The issue in there was that type measures (the margin, padding etc we apply to elements that have text in them) should be adjusted depending on the actual typeface in use. We currently set them as concrete values based on the preferred font, but if that font isn't available then the next in the font stack is unlikely to be suitably close and therefor the measures need adjusting. CSS doesn't have that type of logic or workflow.

Received on Tuesday, 10 January 2012 14:54:41 UTC