[css3-fonts] Reference to 'lang' attribute

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 UTC