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

[css-counter-styles] OM model for @counter-style rules

From: John Daggett <jdaggett@mozilla.com>
Date: Wed, 5 Sep 2012 00:23:22 -0700 (PDT)
To: www-style list <www-style@w3.org>
Message-ID: <118889729.5176749.1346829802623.JavaMail.root@mozilla.com>

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.



[1] http://dev.w3.org/csswg/css-counter-styles/#the-csscounterstylerule-interface
Received on Wednesday, 5 September 2012 07:23:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:21 UTC