From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/web-sys/src/features/gen_CssGroupingRule.rs | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 vendor/web-sys/src/features/gen_CssGroupingRule.rs (limited to 'vendor/web-sys/src/features/gen_CssGroupingRule.rs') diff --git a/vendor/web-sys/src/features/gen_CssGroupingRule.rs b/vendor/web-sys/src/features/gen_CssGroupingRule.rs new file mode 100644 index 000000000..9c0fe854d --- /dev/null +++ b/vendor/web-sys/src/features/gen_CssGroupingRule.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSGroupingRule , typescript_type = "CSSGroupingRule")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssGroupingRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub type CssGroupingRule; + #[cfg(feature = "CssRuleList")] + # [wasm_bindgen (structural , method , getter , js_class = "CSSGroupingRule" , 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/CSSGroupingRule/cssRules)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`, `CssRuleList`*"] + pub fn css_rules(this: &CssGroupingRule) -> CssRuleList; + # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = deleteRule)] + #[doc = "The `deleteRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/deleteRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub fn delete_rule(this: &CssGroupingRule, index: u32) -> Result<(), JsValue>; + # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)] + #[doc = "The `insertRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub fn insert_rule(this: &CssGroupingRule, rule: &str) -> Result; + # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)] + #[doc = "The `insertRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub fn insert_rule_with_index( + this: &CssGroupingRule, + rule: &str, + index: u32, + ) -> Result; +} -- cgit v1.2.3