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

[css-fonts] Simplify the syntax definitions of @font-face and @font-feature-values

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 23 May 2013 13:34:33 -0700
Message-ID: <CAAWBYDCXS-E1=qC=45AT9aHyXEyDzciV_MOkSqS6u5cjrrak8g@mail.gmail.com>
To: www-style list <www-style@w3.org>
The two at-rules in the Fonts spec can be specified in a much simpler
and easier-to-read manner, now that I've defined rules for rule

For @font-face:

The grammar for @font-face is:

@font-face { <declaration-list> }

The valid declarations inside a @font-face rule are the descriptors
defined in this specification to apply to @font-face.

For @font-feature-values:

The grammar for @font-feature-values is:

@font-feature-values <'font-family'># { <rule-list> }

The valid rules inside a @font-feature-values are <font-feature-rule>s:

<font-feature-rule> = [@stylistic | @styleset | ...] { <declaration-list> }

The declarations inside a <font-feature-rule> are descriptors.  Any
descriptor name is valid.

This cuts out a decent chunk of the syntax and error-handling
description.  You just need to keep a bit about merging rules
together, and what they actually define (your descriptions of a tuples

Received on Thursday, 23 May 2013 20:35:20 UTC

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