Re: [css-page] OM for margin rules (was: [css3-fonts][cssom] CSSFontFeatureValuesRule vs. CSSKeyframesRule)

On Thu, May 30, 2013 at 1:09 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> The idea is that CSSPageRule would inherit from CSSGroupingRule in addition
> to providing a CSSStyleDeclaration style attribute. The margin rules inside
> @page would be represented by new sub-types of CSSRule. I’m not sure yet if
> we should define 16 different types (and corresponding constants) or just
> one with an at_keyword or similar attribute.

The latter.  The fact that they have different names is just a
syntactic convenience; they're otherwise identical besides their name,
and so should expose the same interface, with an attribute identifying
them.

~TJ

Received on Thursday, 30 May 2013 17:36:58 UTC