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
Status: RESOLVED FIXED
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 12:13 UTC by Simon Pieters
Modified: 2013-08-08 13:26 UTC (History)
0 users

See Also:


Attachments

Description Simon Pieters 2013-04-26 12:13:38 UTC
https://dvcs.w3.org/hg/csswg/raw-file/tip/cssom/Overview.html#the-elementcssinlinestyle-interface

[[
The ElementCSSInlineStyle interface is implemented by Element objects in order to provide access to inline style properties.
[NoInterfaceObject]
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: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#dom-style

SVG has: http://www.w3.org/TR/SVG2/types.html#__svg__SVGElement__style

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).