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

re: [css3-fonts] invalid ranges within unicode-range descriptor (was: Re: [css3-fonts] Not-quite-so-minor Comments V)

From: John Daggett <jdaggett@mozilla.com>
Date: Mon, 20 May 2013 21:48:25 -0700 (PDT)
To: www-style@w3.org
Message-ID: <980363679.16641644.1369111705308.JavaMail.root@mozilla.com>

fantasai wrote (regarding the @font-face rule unicode-range descriptor):

>    # Without any valid ranges, the descriptor is omitted.
> I disagree with this. If there aren't any valid ranges,
> the range should be the null set, not *everything*.

I think there are a couple reasons why this isn't a good idea.  I
spec'ed the behavior above because it's roughly equivalent to the
handling of properties with invalid values: 

  font-style: italic;
  font-style: whizzy;  /* invalid value, font-style: italic used */

Ignoring a descriptor when the ranges aren't valid allows future
syntax to be added in a way that an author can also include descriptor
declarations for older user agents.

For example, if we decide to add a way to specify named ranges to

  unicode-range: u+3000:ffff;  /* all kana/kanji */
  unicode-range: range(jis1);  /* using new syntax, just the JIS1 subset */

User agents that understood the 'range()' function would use that
definition while older user agents would use the first one.

I think the existing definition is in better keeping with CSS
traditions and the expectations of authors.


John Daggett
Received on Tuesday, 21 May 2013 04:48:55 UTC

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