- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 5 Sep 2012 10:13:41 -0700
- To: John Daggett <jdaggett@mozilla.com>
- Cc: www-style list <www-style@w3.org>
On Wed, Sep 5, 2012 at 12:23 AM, John Daggett <jdaggett@mozilla.com> wrote:
> The section of css-counter-styles now includes snippets of an OM interface [1]:
>> The CSSCounterStyleRule interface represents a ‘@counter-style’ rule.
>>
>> interface CSSCounterStyleRule : CSSRule {
>> readonly attribute CSSStyleDeclaration style;
>> }
>> style of type CSSStyleDeclaration, readonly
>>
>> The style attribute must return a CSSStyleDeclaration block that
>> contains the descriptors specified within the @counter-style rule.
>
> I think if we're just looking for a generic getter/setter interface
> for descriptors on @-rules we should define that. This is duping the
> unfortunate interface from CSSFontFaceRule and I don't think that's a
> good pattern to repeat. The list of descriptors on a @counter-style
> rule really has nothing to do with style rules.
>
> Cheers,
>
> John
>
> [1] http://dev.w3.org/csswg/css-counter-styles/#the-csscounterstylerule-interface
If @font-face isn't a good model to follow, good to tell me now. ^_^
I copied it because it's the closest thing to @counter-style.
I'd be perfectly fine with instead just flattening things onto the
main interface.
~TJ
Received on Wednesday, 5 September 2012 17:14:26 UTC