diff options
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/ElementCSSInlineStyle.webidl | 11 | ||||
-rw-r--r-- | components/script/dom/webidls/HTMLElement.webidl | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/components/script/dom/webidls/ElementCSSInlineStyle.webidl b/components/script/dom/webidls/ElementCSSInlineStyle.webidl new file mode 100644 index 00000000000..85e14fab10e --- /dev/null +++ b/components/script/dom/webidls/ElementCSSInlineStyle.webidl @@ -0,0 +1,11 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +//http://dev.w3.org/csswg/cssom/#elementcssinlinestyle + +[NoInterfaceObject] +interface ElementCSSInlineStyle { + [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; +}; diff --git a/components/script/dom/webidls/HTMLElement.webidl b/components/script/dom/webidls/HTMLElement.webidl index 359ef11f0a7..39c7699900d 100644 --- a/components/script/dom/webidls/HTMLElement.webidl +++ b/components/script/dom/webidls/HTMLElement.webidl @@ -46,3 +46,4 @@ interface HTMLElement : Element { //readonly attribute boolean? commandChecked; }; HTMLElement implements GlobalEventHandlers; +HTMLElement implements ElementCSSInlineStyle; |