summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_CssStyleSheet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_CssStyleSheet.rs')
-rw-r--r--vendor/web-sys/src/features/gen_CssStyleSheet.rs55
1 files changed, 55 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_CssStyleSheet.rs b/vendor/web-sys/src/features/gen_CssStyleSheet.rs
new file mode 100644
index 000000000..9ffbb61bd
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_CssStyleSheet.rs
@@ -0,0 +1,55 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = StyleSheet , extends = :: js_sys :: Object , js_name = CSSStyleSheet , typescript_type = "CSSStyleSheet")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `CssStyleSheet` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"]
+ pub type CssStyleSheet;
+ #[cfg(feature = "CssRule")]
+ # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleSheet" , js_name = ownerRule)]
+ #[doc = "Getter for the `ownerRule` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/ownerRule)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleSheet`*"]
+ pub fn owner_rule(this: &CssStyleSheet) -> Option<CssRule>;
+ #[cfg(feature = "CssRuleList")]
+ # [wasm_bindgen (structural , catch , method , getter , js_class = "CSSStyleSheet" , js_name = cssRules)]
+ #[doc = "Getter for the `cssRules` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/cssRules)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssRuleList`, `CssStyleSheet`*"]
+ pub fn css_rules(this: &CssStyleSheet) -> Result<CssRuleList, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = deleteRule)]
+ #[doc = "The `deleteRule()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/deleteRule)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"]
+ pub fn delete_rule(this: &CssStyleSheet, index: u32) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule)]
+ #[doc = "The `insertRule()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"]
+ pub fn insert_rule(this: &CssStyleSheet, rule: &str) -> Result<u32, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule)]
+ #[doc = "The `insertRule()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"]
+ pub fn insert_rule_with_index(
+ this: &CssStyleSheet,
+ rule: &str,
+ index: u32,
+ ) -> Result<u32, JsValue>;
+}