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

Re: [css3-fonts][cssom] proposal for revised definition of CSSFontFaceRule

From: Glenn Adams <glenn@skynav.com>
Date: Wed, 19 Sep 2012 10:56:26 +0800
Message-ID: <CACQ=j+c+8pBwE=VgnDwx2TWQ4_WQuANwLi-poWrAkjEArJE+OQ@mail.gmail.com>
To: John Daggett <jdaggett@mozilla.com>
Cc: www-style list <www-style@w3.org>
interface CSSDescriptors {
  readonly attribute unsigned long length;
  DOMString item(unsigned long index);
  getter DOMString(DOMString name);
  setter void(DOMString name, DOMString value);
  stringifier;
}

interface CSSRuleWithDescriptors : CSSRule {
  readonly attribute CSSDescriptors descriptors;
}

interface CSSFontFaceRule : CSSRuleWithDescriptors {
  getter DOMString(DOMString name);
  setter void(DOMString name, DOMString value);
}

i've updated the above to remove {get,set}Descriptors and make the
getter/setters anonymous

i propose defining CSSDescriptors and CSSRuleWithDescriptors in CSSOM, and
CSSFontFaceRule in CSS3 Fonts; i'm not particularly tied to the names if
someone prefers something different;

the prose definition of CSSFontFaceRule would need to normatively define
the set of property names on which getter/setter operate, e.g.,

The set of property names supported by the inherited descriptors property
> must include the font face descriptors defined in this specification as *mapped
> to camel-case names.*


where *mapped to camel-case names* is to be a added as defined algorithm in
CSSOM
comments?

>
>
Received on Wednesday, 19 September 2012 02:57:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:00 GMT