Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immutable CSSOM #14190

Merged
merged 6 commits into from Nov 16, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Unexpose CSSOM interfaces

  • Loading branch information
Manishearth committed Nov 15, 2016
commit 71a2b379c8e7886439a5aaa535411841dea6b114
@@ -6,7 +6,7 @@
* http://dev.w3.org/csswg/cssom/#the-css-interface
*/

[Abstract, Exposed=(Window,Worker)]
[Abstract, Exposed=Window]
interface CSS {
[Throws]
static DOMString escape(DOMString ident);
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/css-fonts/#cssfontfacerule
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSFontFaceRule : CSSRule {
// attribute DOMString family;
// attribute DOMString src;
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/cssom/#the-cssgroupingrule-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSGroupingRule : CSSRule {
// [SameObject] readonly attribute CSSRuleList cssRules;
// unsigned long insertRule(DOMString rule, unsigned long index);
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/css-animations/#interface-csskeyframesrule
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSKeyframesRule : CSSRule {
// attribute DOMString name;
// readonly attribute CSSRuleList cssRules;
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/cssom/#the-cssmediarule-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSMediaRule : CSSGroupingRule {
// [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
};
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/cssom/#the-cssnamespacerule-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSNamespaceRule : CSSRule {
// readonly attribute DOMString namespaceURI;
// readonly attribute DOMString prefix;
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/cssom/#the-cssrule-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSRule {
const unsigned short STYLE_RULE = 1;
const unsigned short CHARSET_RULE = 2; // historical
@@ -4,7 +4,7 @@

// https://drafts.csswg.org/cssom/#cssrulelist
// [LegacyArrayClass]
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSRuleList {
getter CSSRule? item(unsigned long index);
readonly attribute unsigned long length;
@@ -8,7 +8,7 @@
* Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved.
*/

[Exposed=(Window,Worker)]
[Exposed=(Window, Worker)]
interface CSSStyleDeclaration {
[SetterThrows]
attribute DOMString cssText;
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/cssom/#the-cssstylerule-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSStyleRule : CSSRule {
// attribute DOMString selectorText;
// [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/cssom/#the-cssstylesheet-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSStyleSheet : StyleSheet {
// readonly attribute CSSRule? ownerRule;
[SameObject] readonly attribute CSSRuleList cssRules;
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/css-device-adapt/#css-viewport-rule-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface CSSViewportRule : CSSRule {
// readonly attribute CSSStyleDeclaration style;
};
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// https://drafts.csswg.org/cssom/#the-stylesheet-interface
[Exposed=(Window,Worker)]
[Exposed=Window]
interface StyleSheet {
readonly attribute DOMString type_;
readonly attribute DOMString? href;
@@ -4,7 +4,7 @@

// https://drafts.csswg.org/cssom/#the-stylesheetlist-interface
// [ArrayClass]
[Exposed=(Window,Worker)]
[Exposed=Window]
interface StyleSheetList {
getter StyleSheet? item(unsigned long index);
readonly attribute unsigned long length;
@@ -10,18 +10,7 @@ test_interfaces([
"BeforeUnloadEvent",
"Blob",
"CloseEvent",
"CSS",
"CSSFontFaceRule",
"CSSGroupingRule",
"CSSKeyframesRule",
"CSSMediaRule",
"CSSNamespaceRule",
"CSSRule",
"CSSRuleList",
"CSSStyleDeclaration",
"CSSStyleRule",
"CSSStyleSheet",
"CSSViewportRule",
"DOMPoint",
"DOMPointReadOnly",
"DOMQuad",
@@ -60,8 +49,6 @@ test_interfaces([
"Screen",
"Storage",
"StorageEvent",
"StyleSheet",
"StyleSheetList",
"TextDecoder",
"TextEncoder",
"URL",
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.