W3C home > Mailing lists > Public > www-style@w3.org > January 2012

Re: A CSS equivalent of HTML's DOCTYPE trigger

From: Jon Rimmer <jon.rimmer@gmail.com>
Date: Tue, 10 Jan 2012 14:54:13 +0000
Message-ID: <CA+ZDCiCqcVV059FxwrGuMdtv_spbpkHf-RUuSrnCACkPmhTQQg@mail.gmail.com>
To: Matthew Wilcox <elvendil@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org Style" <www-style@w3.org>
What about extending @supports for this? Something like...

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

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:09 UTC