summaryrefslogtreecommitdiffstats
path: root/dom/interfaces/css
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/interfaces/css
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/interfaces/css')
-rw-r--r--dom/interfaces/css/moz.build34
-rw-r--r--dom/interfaces/css/nsIDOMCSSConditionRule.idl16
-rw-r--r--dom/interfaces/css/nsIDOMCSSCounterStyleRule.idl23
-rw-r--r--dom/interfaces/css/nsIDOMCSSFontFaceRule.idl12
-rw-r--r--dom/interfaces/css/nsIDOMCSSFontFeatureValuesRule.idl16
-rw-r--r--dom/interfaces/css/nsIDOMCSSGroupingRule.idl21
-rw-r--r--dom/interfaces/css/nsIDOMCSSImportRule.idl14
-rw-r--r--dom/interfaces/css/nsIDOMCSSKeyframeRule.idl13
-rw-r--r--dom/interfaces/css/nsIDOMCSSKeyframesRule.idl17
-rw-r--r--dom/interfaces/css/nsIDOMCSSMediaRule.idl15
-rw-r--r--dom/interfaces/css/nsIDOMCSSMozDocumentRule.idl15
-rw-r--r--dom/interfaces/css/nsIDOMCSSPageRule.idl15
-rw-r--r--dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl62
-rw-r--r--dom/interfaces/css/nsIDOMCSSRule.idl56
-rw-r--r--dom/interfaces/css/nsIDOMCSSRuleList.idl21
-rw-r--r--dom/interfaces/css/nsIDOMCSSStyleDeclaration.idl34
-rw-r--r--dom/interfaces/css/nsIDOMCSSStyleRule.idl15
-rw-r--r--dom/interfaces/css/nsIDOMCSSStyleSheet.idl27
-rw-r--r--dom/interfaces/css/nsIDOMCSSSupportsRule.idl14
-rw-r--r--dom/interfaces/css/nsIDOMCSSUnknownRule.idl11
-rw-r--r--dom/interfaces/css/nsIDOMCSSValue.idl29
-rw-r--r--dom/interfaces/css/nsIDOMCSSValueList.idl12
-rw-r--r--dom/interfaces/css/nsIDOMCounter.idl14
-rw-r--r--dom/interfaces/css/nsIDOMRect.idl15
24 files changed, 521 insertions, 0 deletions
diff --git a/dom/interfaces/css/moz.build b/dom/interfaces/css/moz.build
new file mode 100644
index 000000000..d6457a373
--- /dev/null
+++ b/dom/interfaces/css/moz.build
@@ -0,0 +1,34 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# 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/.
+
+XPIDL_SOURCES += [
+ 'nsIDOMCounter.idl',
+ 'nsIDOMCSSConditionRule.idl',
+ 'nsIDOMCSSCounterStyleRule.idl',
+ 'nsIDOMCSSFontFaceRule.idl',
+ 'nsIDOMCSSFontFeatureValuesRule.idl',
+ 'nsIDOMCSSGroupingRule.idl',
+ 'nsIDOMCSSImportRule.idl',
+ 'nsIDOMCSSKeyframeRule.idl',
+ 'nsIDOMCSSKeyframesRule.idl',
+ 'nsIDOMCSSMediaRule.idl',
+ 'nsIDOMCSSMozDocumentRule.idl',
+ 'nsIDOMCSSPageRule.idl',
+ 'nsIDOMCSSPrimitiveValue.idl',
+ 'nsIDOMCSSRule.idl',
+ 'nsIDOMCSSRuleList.idl',
+ 'nsIDOMCSSStyleDeclaration.idl',
+ 'nsIDOMCSSStyleRule.idl',
+ 'nsIDOMCSSStyleSheet.idl',
+ 'nsIDOMCSSSupportsRule.idl',
+ 'nsIDOMCSSUnknownRule.idl',
+ 'nsIDOMCSSValue.idl',
+ 'nsIDOMCSSValueList.idl',
+ 'nsIDOMRect.idl',
+]
+
+XPIDL_MODULE = 'dom_css'
+
diff --git a/dom/interfaces/css/nsIDOMCSSConditionRule.idl b/dom/interfaces/css/nsIDOMCSSConditionRule.idl
new file mode 100644
index 000000000..5949ad484
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSConditionRule.idl
@@ -0,0 +1,16 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSGroupingRule.idl"
+
+/**
+ * Interface in the CSS OM for at-rules that conditionally apply their
+ * child rules.
+ */
+[scriptable, uuid(44da41b2-5660-415d-8692-eae805776103)]
+interface nsIDOMCSSConditionRule : nsIDOMCSSGroupingRule
+{
+ attribute DOMString conditionText;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSCounterStyleRule.idl b/dom/interfaces/css/nsIDOMCSSCounterStyleRule.idl
new file mode 100644
index 000000000..0831b2238
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSCounterStyleRule.idl
@@ -0,0 +1,23 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(9b5e48ce-d84c-4e31-aff5-34e9f4141313)]
+interface nsIDOMCSSCounterStyleRule : nsIDOMCSSRule
+{
+ attribute DOMString name;
+ attribute DOMString system;
+ attribute DOMString symbols;
+ attribute DOMString additiveSymbols;
+ attribute DOMString negative;
+ attribute DOMString prefix;
+ attribute DOMString suffix;
+ attribute DOMString range;
+ attribute DOMString pad;
+ attribute DOMString speakAs;
+ attribute DOMString fallback;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSFontFaceRule.idl b/dom/interfaces/css/nsIDOMCSSFontFaceRule.idl
new file mode 100644
index 000000000..18ca669f4
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSFontFaceRule.idl
@@ -0,0 +1,12 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(db971017-fe0c-4529-972c-8217f2fee217)]
+interface nsIDOMCSSFontFaceRule : nsIDOMCSSRule
+{
+ readonly attribute nsIDOMCSSStyleDeclaration style;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSFontFeatureValuesRule.idl b/dom/interfaces/css/nsIDOMCSSFontFeatureValuesRule.idl
new file mode 100644
index 000000000..1b04dde86
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSFontFeatureValuesRule.idl
@@ -0,0 +1,16 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(a343d27f-1da6-4fc3-9355-d4ca434f958e)]
+interface nsIDOMCSSFontFeatureValuesRule : nsIDOMCSSRule
+{
+ attribute DOMString fontFamily;
+ // raises(DOMException) on setting
+
+ attribute DOMString valueText;
+ // raises(DOMException) on setting
+};
diff --git a/dom/interfaces/css/nsIDOMCSSGroupingRule.idl b/dom/interfaces/css/nsIDOMCSSGroupingRule.idl
new file mode 100644
index 000000000..80f072d16
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSGroupingRule.idl
@@ -0,0 +1,21 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+/**
+ * Interface for at-rules that have child rules in the CSS OM.
+ */
+[scriptable, uuid(a0e3324a-f911-4baf-9591-5322c76cbb0d)]
+interface nsIDOMCSSGroupingRule : nsIDOMCSSRule
+{
+ readonly attribute nsIDOMCSSRuleList cssRules;
+
+ unsigned long insertRule(in DOMString rule,
+ in unsigned long index)
+ raises(DOMException);
+ void deleteRule(in unsigned long index)
+ raises(DOMException);
+};
diff --git a/dom/interfaces/css/nsIDOMCSSImportRule.idl b/dom/interfaces/css/nsIDOMCSSImportRule.idl
new file mode 100644
index 000000000..0909d9221
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSImportRule.idl
@@ -0,0 +1,14 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(d3b2b914-01ef-4663-beda-a6475a26f491)]
+interface nsIDOMCSSImportRule : nsIDOMCSSRule
+{
+ readonly attribute DOMString href;
+ readonly attribute nsIDOMMediaList media;
+ readonly attribute nsIDOMCSSStyleSheet styleSheet;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSKeyframeRule.idl b/dom/interfaces/css/nsIDOMCSSKeyframeRule.idl
new file mode 100644
index 000000000..46e7ffbb1
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSKeyframeRule.idl
@@ -0,0 +1,13 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(a281a8b4-eaa2-49a8-8b97-acc2814a57c9)]
+interface nsIDOMCSSKeyframeRule : nsIDOMCSSRule
+{
+ attribute DOMString keyText;
+ readonly attribute nsIDOMCSSStyleDeclaration style;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSKeyframesRule.idl b/dom/interfaces/css/nsIDOMCSSKeyframesRule.idl
new file mode 100644
index 000000000..acbb657e4
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSKeyframesRule.idl
@@ -0,0 +1,17 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(400f4b70-ad0a-4047-aba4-ee8019f6b907)]
+interface nsIDOMCSSKeyframesRule : nsIDOMCSSRule
+{
+ attribute DOMString name;
+ readonly attribute nsIDOMCSSRuleList cssRules;
+
+ void appendRule(in DOMString rule);
+ void deleteRule(in DOMString key);
+ nsIDOMCSSKeyframeRule findRule(in DOMString key);
+};
diff --git a/dom/interfaces/css/nsIDOMCSSMediaRule.idl b/dom/interfaces/css/nsIDOMCSSMediaRule.idl
new file mode 100644
index 000000000..9be4ba143
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSMediaRule.idl
@@ -0,0 +1,15 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSConditionRule.idl"
+
+/**
+ * Interface for @media rules in the CSS OM.
+ */
+[scriptable, uuid(6cf9c5b2-fa0f-43c0-aa50-ef85b4756e3a)]
+interface nsIDOMCSSMediaRule : nsIDOMCSSConditionRule
+{
+ readonly attribute nsIDOMMediaList media;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSMozDocumentRule.idl b/dom/interfaces/css/nsIDOMCSSMozDocumentRule.idl
new file mode 100644
index 000000000..8b4152fce
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSMozDocumentRule.idl
@@ -0,0 +1,15 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSConditionRule.idl"
+
+/**
+ * Interface for @-moz-document rules in the CSS OM.
+ */
+[scriptable, uuid(2d0cef9d-c1b2-4c6c-9003-fa83040626d1)]
+interface nsIDOMCSSMozDocumentRule : nsIDOMCSSConditionRule
+{
+ // XXX Add access to the URL list.
+};
diff --git a/dom/interfaces/css/nsIDOMCSSPageRule.idl b/dom/interfaces/css/nsIDOMCSSPageRule.idl
new file mode 100644
index 000000000..e586a0dbb
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSPageRule.idl
@@ -0,0 +1,15 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(c119072b-7d2f-4aeb-a90d-e2d6b606c32a)]
+interface nsIDOMCSSPageRule : nsIDOMCSSRule
+{
+ //attribute DOMString selectorText;
+ // raises(DOMException) on setting
+
+ readonly attribute nsIDOMCSSStyleDeclaration style;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl b/dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl
new file mode 100644
index 000000000..152538505
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl
@@ -0,0 +1,62 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSValue.idl"
+
+/**
+ * The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive
+ * CSS value in the Document Object Model.
+ *
+ * For more information on this interface please see
+ * http://www.w3.org/TR/DOM-Level-2-Style
+ */
+
+[uuid(f6df7293-2dc9-4cb9-9531-778caf4370e0)]
+interface nsIDOMCSSPrimitiveValue : nsIDOMCSSValue
+{
+ // UnitTypes
+ const unsigned short CSS_UNKNOWN = 0;
+ const unsigned short CSS_NUMBER = 1;
+ const unsigned short CSS_PERCENTAGE = 2;
+ const unsigned short CSS_EMS = 3;
+ const unsigned short CSS_EXS = 4;
+ const unsigned short CSS_PX = 5;
+ const unsigned short CSS_CM = 6;
+ const unsigned short CSS_MM = 7;
+ const unsigned short CSS_IN = 8;
+ const unsigned short CSS_PT = 9;
+ const unsigned short CSS_PC = 10;
+ const unsigned short CSS_DEG = 11;
+ const unsigned short CSS_RAD = 12;
+ const unsigned short CSS_GRAD = 13;
+ const unsigned short CSS_MS = 14;
+ const unsigned short CSS_S = 15;
+ const unsigned short CSS_HZ = 16;
+ const unsigned short CSS_KHZ = 17;
+ const unsigned short CSS_DIMENSION = 18;
+ const unsigned short CSS_STRING = 19;
+ const unsigned short CSS_URI = 20;
+ const unsigned short CSS_IDENT = 21;
+ const unsigned short CSS_ATTR = 22;
+ const unsigned short CSS_COUNTER = 23;
+ const unsigned short CSS_RECT = 24;
+ const unsigned short CSS_RGBCOLOR = 25;
+
+ readonly attribute unsigned short primitiveType;
+ void setFloatValue(in unsigned short unitType,
+ in float floatValue)
+ raises(DOMException);
+ float getFloatValue(in unsigned short unitType)
+ raises(DOMException);
+ void setStringValue(in unsigned short stringType,
+ in DOMString stringValue)
+ raises(DOMException);
+ DOMString getStringValue()
+ raises(DOMException);
+ nsIDOMCounter getCounterValue()
+ raises(DOMException);
+ nsIDOMRect getRectValue()
+ raises(DOMException);
+};
diff --git a/dom/interfaces/css/nsIDOMCSSRule.idl b/dom/interfaces/css/nsIDOMCSSRule.idl
new file mode 100644
index 000000000..f4cc55773
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSRule.idl
@@ -0,0 +1,56 @@
+/* -*- 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/. */
+
+#include "domstubs.idl"
+
+%{C++
+namespace mozilla {
+namespace css {
+class Rule;
+}
+}
+%}
+
+[ptr] native Rule(mozilla::css::Rule);
+
+/**
+ * The nsIDOMCSSRule interface is a datatype for a CSS style rule in
+ * the Document Object Model.
+ *
+ * For more information on this interface please see
+ * http://www.w3.org/TR/DOM-Level-2-Style
+ */
+
+[scriptable, uuid(4d6b3bad-f53c-4585-82f6-62982e27ede8)]
+interface nsIDOMCSSRule : nsISupports
+{
+ // RuleType
+ const unsigned short UNKNOWN_RULE = 0;
+ const unsigned short STYLE_RULE = 1;
+ const unsigned short CHARSET_RULE = 2;
+ const unsigned short IMPORT_RULE = 3;
+ const unsigned short MEDIA_RULE = 4;
+ const unsigned short FONT_FACE_RULE = 5;
+ const unsigned short PAGE_RULE = 6;
+ const unsigned short KEYFRAMES_RULE = 7;
+ const unsigned short KEYFRAME_RULE = 8;
+ // When layout.css.prefixes.animations is disabled/removed,
+ // we should remove these two MOZ_* constants.
+ const unsigned short MOZ_KEYFRAMES_RULE = 7;
+ const unsigned short MOZ_KEYFRAME_RULE = 8;
+ const unsigned short NAMESPACE_RULE = 10;
+ const unsigned short COUNTER_STYLE_RULE = 11;
+ const unsigned short SUPPORTS_RULE = 12;
+ const unsigned short FONT_FEATURE_VALUES_RULE = 14;
+
+ readonly attribute unsigned short type;
+ attribute DOMString cssText;
+ // raises(DOMException) on setting
+
+ readonly attribute nsIDOMCSSStyleSheet parentStyleSheet;
+ readonly attribute nsIDOMCSSRule parentRule;
+
+ [noscript, nostdcall, notxpcom] Rule getCSSRule();
+};
diff --git a/dom/interfaces/css/nsIDOMCSSRuleList.idl b/dom/interfaces/css/nsIDOMCSSRuleList.idl
new file mode 100644
index 000000000..ffe905f27
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSRuleList.idl
@@ -0,0 +1,21 @@
+/* -*- 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/. */
+
+#include "domstubs.idl"
+
+/**
+ * The nsIDOMCSSRuleList interface is a datatype for a list of CSS
+ * style rules in the Document Object Model.
+ *
+ * For more information on this interface please see
+ * http://www.w3.org/TR/DOM-Level-2-Style
+ */
+
+[scriptable, uuid(a6cf90c0-15b3-11d2-932e-00805f8add32)]
+interface nsIDOMCSSRuleList : nsISupports
+{
+ readonly attribute unsigned long length;
+ nsIDOMCSSRule item(in unsigned long index);
+};
diff --git a/dom/interfaces/css/nsIDOMCSSStyleDeclaration.idl b/dom/interfaces/css/nsIDOMCSSStyleDeclaration.idl
new file mode 100644
index 000000000..b0d569c93
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSStyleDeclaration.idl
@@ -0,0 +1,34 @@
+/* -*- 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/. */
+
+#include "domstubs.idl"
+
+/**
+ * The nsIDOMCSSStyleDeclaration interface is a datatype for a CSS
+ * style declaration in the Document Object Model.
+ *
+ * For more information on this interface please see
+ * http://www.w3.org/TR/DOM-Level-2-Style
+ */
+
+[uuid(a6cf90be-15b3-11d2-932e-00805f8add32)]
+interface nsIDOMCSSStyleDeclaration : nsISupports
+{
+ attribute DOMString cssText;
+ // raises(DOMException) on setting
+
+ DOMString getPropertyValue(in DOMString propertyName);
+ nsIDOMCSSValue getPropertyCSSValue(in DOMString propertyName);
+ DOMString removeProperty(in DOMString propertyName)
+ raises(DOMException);
+ DOMString getPropertyPriority(in DOMString propertyName);
+ void setProperty(in DOMString propertyName,
+ in DOMString value,
+ [optional] in DOMString priority)
+ raises(DOMException);
+ readonly attribute unsigned long length;
+ DOMString item(in unsigned long index);
+ readonly attribute nsIDOMCSSRule parentRule;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSStyleRule.idl b/dom/interfaces/css/nsIDOMCSSStyleRule.idl
new file mode 100644
index 000000000..d94d22d93
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSStyleRule.idl
@@ -0,0 +1,15 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(b5e9af48-a7c2-4f88-aae3-58307af4b5a5)]
+interface nsIDOMCSSStyleRule : nsIDOMCSSRule
+{
+ attribute DOMString selectorText;
+ // raises(DOMException) on setting
+
+ readonly attribute nsIDOMCSSStyleDeclaration style;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSStyleSheet.idl b/dom/interfaces/css/nsIDOMCSSStyleSheet.idl
new file mode 100644
index 000000000..b9e13134e
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSStyleSheet.idl
@@ -0,0 +1,27 @@
+/* -*- 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/. */
+
+#include "nsIDOMStyleSheet.idl"
+
+/**
+ * The nsIDOMCSSStyleSheet interface is a datatype for a CSS style
+ * sheet in the Document Object Model.
+ *
+ * For more information on this interface please see
+ * http://www.w3.org/TR/DOM-Level-2-Style
+ */
+
+[uuid(a6cf90c2-15b3-11d2-932e-00805f8add32)]
+interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
+{
+ readonly attribute nsIDOMCSSRule ownerRule;
+ readonly attribute nsIDOMCSSRuleList cssRules;
+
+ unsigned long insertRule(in DOMString rule,
+ in unsigned long index)
+ raises(DOMException);
+ void deleteRule(in unsigned long index)
+ raises(DOMException);
+};
diff --git a/dom/interfaces/css/nsIDOMCSSSupportsRule.idl b/dom/interfaces/css/nsIDOMCSSSupportsRule.idl
new file mode 100644
index 000000000..953d558fb
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSSupportsRule.idl
@@ -0,0 +1,14 @@
+/* -*- 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/. */
+
+#include "nsIDOMCSSConditionRule.idl"
+
+/**
+ * Interface for @supports rules in the CSS OM.
+ */
+[scriptable, uuid(0b9e63a1-1bd7-4caf-850e-148b762b14d2)]
+interface nsIDOMCSSSupportsRule : nsIDOMCSSConditionRule
+{
+};
diff --git a/dom/interfaces/css/nsIDOMCSSUnknownRule.idl b/dom/interfaces/css/nsIDOMCSSUnknownRule.idl
new file mode 100644
index 000000000..6dfb5ec69
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSUnknownRule.idl
@@ -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/. */
+
+#include "nsIDOMCSSRule.idl"
+
+[scriptable, uuid(98f4c27b-fb35-4355-8fd9-546c4697d71a)]
+interface nsIDOMCSSUnknownRule : nsIDOMCSSRule
+{
+};
diff --git a/dom/interfaces/css/nsIDOMCSSValue.idl b/dom/interfaces/css/nsIDOMCSSValue.idl
new file mode 100644
index 000000000..52139fbd6
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSValue.idl
@@ -0,0 +1,29 @@
+/* -*- 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/. */
+
+#include "domstubs.idl"
+
+/**
+ * The nsIDOMCSSValue interface is a datatype for a CSS value in the
+ * Document Object Model.
+ *
+ * For more information on this interface please see
+ * http://www.w3.org/TR/DOM-Level-2-Style
+ */
+
+[uuid(009f7ea5-9e80-41be-b008-db62f10823f2)]
+interface nsIDOMCSSValue : nsISupports
+{
+ // UnitTypes
+ const unsigned short CSS_INHERIT = 0;
+ const unsigned short CSS_PRIMITIVE_VALUE = 1;
+ const unsigned short CSS_VALUE_LIST = 2;
+ const unsigned short CSS_CUSTOM = 3;
+
+ attribute DOMString cssText;
+ // raises(DOMException) on setting
+
+ readonly attribute unsigned short cssValueType;
+};
diff --git a/dom/interfaces/css/nsIDOMCSSValueList.idl b/dom/interfaces/css/nsIDOMCSSValueList.idl
new file mode 100644
index 000000000..a797df1bc
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCSSValueList.idl
@@ -0,0 +1,12 @@
+/* -*- 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/. */
+
+#include "domstubs.idl"
+#include "nsIDOMCSSValue.idl"
+
+[uuid(92364ed1-e364-4175-bc52-c2fe9671cbc7)]
+interface nsIDOMCSSValueList : nsIDOMCSSValue
+{
+};
diff --git a/dom/interfaces/css/nsIDOMCounter.idl b/dom/interfaces/css/nsIDOMCounter.idl
new file mode 100644
index 000000000..b5c408fbe
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMCounter.idl
@@ -0,0 +1,14 @@
+/* -*- 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/. */
+
+#include "domstubs.idl"
+
+[scriptable, uuid(31adb439-0055-402d-9b1d-d5ca94f3f55b)]
+interface nsIDOMCounter : nsISupports
+{
+ readonly attribute DOMString identifier;
+ readonly attribute DOMString listStyle;
+ readonly attribute DOMString separator;
+};
diff --git a/dom/interfaces/css/nsIDOMRect.idl b/dom/interfaces/css/nsIDOMRect.idl
new file mode 100644
index 000000000..4de84796c
--- /dev/null
+++ b/dom/interfaces/css/nsIDOMRect.idl
@@ -0,0 +1,15 @@
+/* -*- 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/. */
+
+#include "domstubs.idl"
+
+[uuid(71735f62-ac5c-4236-9a1f-5ffb280d531c)]
+interface nsIDOMRect : nsISupports
+{
+ readonly attribute nsIDOMCSSPrimitiveValue top;
+ readonly attribute nsIDOMCSSPrimitiveValue right;
+ readonly attribute nsIDOMCSSPrimitiveValue bottom;
+ readonly attribute nsIDOMCSSPrimitiveValue left;
+};