- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 19 Sep 2012 09:25:10 +0200
- To: Sebastian Zartner <sebastianzartner@gmail.com>
- Cc: Glenn Adams <glenn@skynav.com>, John Daggett <jdaggett@mozilla.com>, www-style list <www-style@w3.org>
On Wed, Sep 19, 2012 at 9:14 AM, Sebastian Zartner
<sebastianzartner@gmail.com> wrote:
> On Wed, Sep 19, 2012 at 4:56 AM, Glenn Adams <glenn@skynav.com> wrote:
>> 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);
>> }
>
>
> Just to be clear here: This means people will be able to access the
> descriptors in their property name notation as well as in camelCase notation
> via [], right? And item(index) resp. [index] return the property name
> notation (e.g. 'unicode-range') like CSSStyleDeclarations do?
It's not present in just the IDL (you have to define these details in
the prose), but it appears that Glenn's definition is solely named
getters/setters, not indexed (so no numbers), there's no item()
method, and the named getters are just the camelcase version, not the
dash version.
~TJ
Received on Wednesday, 19 September 2012 07:26:01 UTC