This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21848 - Sort out the mess with the .style attribute
Summary: Sort out the mess with the .style attribute
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
Depends on:
Reported: 2013-04-26 12:13 UTC by Simon Pieters
Modified: 2013-08-08 13:26 UTC (History)
0 users

See Also:


Description Simon Pieters 2013-04-26 12:13:38 UTC

The ElementCSSInlineStyle interface is implemented by Element objects in order to provide access to inline style properties.
interface ElementCSSInlineStyle {
    readonly attribute CSSStyleDeclaration style;

style of type CSSStyleDeclaration, readonly

The style attribute must return a mutable CSSStyleDeclaration object    that represents the inline style properties of the associated Element instance.

HTML has:

SVG has:

I think we should make the definition in CSSOM more like HTML's definition, then make the HTML and SVG specs say (HTML|SVG)Element implements ElementCSSInlineStyle; if CSS is supported (and not if it's not).