CSSStyleDeclaration has two attributes for each CSS property. A dashed and a camelCase representation. The CSSStyleDeclaration interface only contains the camelCase representation currently.
The dashed attribute attribute, on getting, must return the result of invoking getPropertyValue() with the argument being dashed attribute.
Setting the dashed attribute attribute must invoke setProperty() with the first argument being dashed attribute, as second argument the given value, and no third argument. Any exceptions thrown must be re-thrown.
For example, for the font-size property there would be a font-size IDL attribute. In JavaScript, the property can be accessed as follows, assuming element is an HTML element:
CSSStyleDeclaration
has two attributes for each CSS property. A dashed and a camelCase representation. TheCSSStyleDeclaration
interface only contains the camelCase representation currently.Please find a demonstration of this issue here: Playground Link