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

Re: [cssom] .style on CSSFontFaceRule and CSSPageRule should probably not be CSSStyleDeclarations as that interface is currently defined

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 21 Aug 2012 14:13:54 -0400
Message-ID: <5033CFE2.7010208@mit.edu>
To: www-style@w3.org
On 8/21/12 9:47 AM, Stewart Brodie wrote:
> Was any progress ever made with this?

At this point CSSStyleDeclaration no longer lists all the properties in 
the IDL and instead says:

   Similarly for the table below, setting the IDL attribute in the first
   column must invoke setProperty() with as first argument the CSS
   property given in the second column on the same row, as second
   argument the given value, and no third argument.

The table has no rows, though, so the whole thing is a no-op.

While this does address some of my comments, in that it effectively 
removes all those properties from CSSStyleDeclaration, I'm pretty sure 
the result is not web-compatible, since the properties _do_ need to be 
there for at the very least HTMLElement.style.

In the meantime, in Gecko I'm implementing a CSS2Properties that has all 
the actual CSS properties, inheriting from CSSStyleDeclaration.  Then 
some things are CSS2Properties (e.g. HTMLElement.style) and some are 
just CSSStyleDeclaration (font-face descriptor stuff) for the moment. 
It's still all pretty broken, but it's _something_, at least.

Received on Tuesday, 21 August 2012 18:15:26 UTC

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