Re: [csswg-drafts] [CSSOM] Separate camel_cased_attribute from CSSStyleDeclaration

Yeah, CSSStyleDeclaration.

Some context:

Currently, if we change CSSFontFaceRule's spec back to matching reality (giving it an `attribute CSSStyleDeclaration style;`), it'll come with every CSS property as well.  This is nasty and dumb, and since Firefox doesn't do this and hasn't had any problems, clearly something we can avoid.

So, probably pull the `_camel_cased_attribute` into a separate `[NoInterfaceObject]` interface, and specify (I guess in prose?) that it's mixed into the version of CSSStyleDeclaration used on CSSStyleRule only.  We'll do similar for the set of descriptors actually used by `CSSFontFaceRule.style`.

(Tho, looking at Firefox, it currently uses CSS2Declarations as the type for CSSStyleRule.style; this interface inherits from CSSStyleDeclaration.  Presumably we can just copy that, then, and make both instances uses subclasses instead, to avoid doing weird prose shenanigans.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1692#issuecomment-322265488 using your GitHub account

Received on Monday, 14 August 2017 18:11:24 UTC