aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/stylesheet.rs4
-rw-r--r--components/script_bindings/webidls/StyleSheet.webidl2
-rw-r--r--tests/wpt/meta/css/cssom/idlharness.html.ini6
3 files changed, 3 insertions, 9 deletions
diff --git a/components/script/dom/stylesheet.rs b/components/script/dom/stylesheet.rs
index bf708685426..8bb6faa0c90 100644
--- a/components/script/dom/stylesheet.rs
+++ b/components/script/dom/stylesheet.rs
@@ -39,8 +39,8 @@ impl StyleSheet {
}
impl StyleSheetMethods<crate::DomTypeHolder> for StyleSheet {
- // https://drafts.csswg.org/cssom/#dom-stylesheet-type
- fn Type_(&self) -> DOMString {
+ /// <https://drafts.csswg.org/cssom/#dom-stylesheet-type>
+ fn Type(&self) -> DOMString {
self.type_.clone()
}
diff --git a/components/script_bindings/webidls/StyleSheet.webidl b/components/script_bindings/webidls/StyleSheet.webidl
index cb8290cc30b..7e0636cf7c0 100644
--- a/components/script_bindings/webidls/StyleSheet.webidl
+++ b/components/script_bindings/webidls/StyleSheet.webidl
@@ -5,7 +5,7 @@
// https://drafts.csswg.org/cssom/#the-stylesheet-interface
[Exposed=Window]
interface StyleSheet {
- readonly attribute DOMString type_;
+ readonly attribute DOMString type;
readonly attribute DOMString? href;
readonly attribute Element? ownerNode;
diff --git a/tests/wpt/meta/css/cssom/idlharness.html.ini b/tests/wpt/meta/css/cssom/idlharness.html.ini
index e87e7a353d2..2578ca63706 100644
--- a/tests/wpt/meta/css/cssom/idlharness.html.ini
+++ b/tests/wpt/meta/css/cssom/idlharness.html.ini
@@ -53,9 +53,6 @@
[CSSStyleDeclaration interface: sheet.cssRules[2\].style must inherit property "setProperty(CSSOMString, CSSOMString, optional CSSOMString)" with the proper type]
expected: FAIL
- [StyleSheet interface: attribute type]
- expected: FAIL
-
[Stringification of sheet.cssRules[2\].cssRules[0\]]
expected: FAIL
@@ -254,9 +251,6 @@
[CSSStyleDeclaration interface: sheet.cssRules[2\].cssRules[0\].style must inherit property "parentRule" with the proper type]
expected: FAIL
- [StyleSheet interface: sheet must inherit property "type" with the proper type]
- expected: FAIL
-
[CSSStyleDeclaration interface: sheet.cssRules[2\].cssRules[0\].style must inherit property "cssText" with the proper type]
expected: FAIL