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

[css3-fonts] Reference to 'lang' attribute

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 10 May 2011 19:58:45 -0700
Message-ID: <4DC9FB65.7080604@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>
The spec currently says
   # Users agents are required to infer the OpenType language system
   # from the value of the ‘lang’ attribute and use that when selecting
   # and positioning glyphs using an OpenType font. If the ‘lang’
   # attribute is not defined, the default OpenType language system must
   # be used.

This is a little too specific, since it only applies to HTML, and doesn't
handle HTTP headers and other such. I suggest using a more abstract phrase
like "the language of the element (matches :lang())" or "the language
declared for the element (matches :lang())" or somesuch terminology.
Referring to the :lang() selector clarifies that the method used here for
determining the language should be consistent with the methods used
elsewhere. (I've done this in CSS3 Text as well. Just so we're all on the
same page, and we don't use a different method for e.g. hyphenation than
for fonts than for :lang() selection.)

~fantasai
Received on Wednesday, 11 May 2011 02:59:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT