1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSGroupingRule , typescript_type = "CSSGroupingRule")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `CssGroupingRule` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
13     pub type CssGroupingRule;
14     #[cfg(feature = "CssRuleList")]
15     # [wasm_bindgen (structural , method , getter , js_class = "CSSGroupingRule" , js_name = cssRules)]
16     #[doc = "Getter for the `cssRules` field of this object."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/cssRules)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`, `CssRuleList`*"]
css_rules(this: &CssGroupingRule) -> CssRuleList21     pub fn css_rules(this: &CssGroupingRule) -> CssRuleList;
22     # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = deleteRule)]
23     #[doc = "The `deleteRule()` method."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/deleteRule)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
delete_rule(this: &CssGroupingRule, index: u32) -> Result<(), JsValue>28     pub fn delete_rule(this: &CssGroupingRule, index: u32) -> Result<(), JsValue>;
29     # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)]
30     #[doc = "The `insertRule()` method."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
insert_rule(this: &CssGroupingRule, rule: &str) -> Result<u32, JsValue>35     pub fn insert_rule(this: &CssGroupingRule, rule: &str) -> Result<u32, JsValue>;
36     # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)]
37     #[doc = "The `insertRule()` method."]
38     #[doc = ""]
39     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"]
40     #[doc = ""]
41     #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
insert_rule_with_index( this: &CssGroupingRule, rule: &str, index: u32, ) -> Result<u32, JsValue>42     pub fn insert_rule_with_index(
43         this: &CssGroupingRule,
44         rule: &str,
45         index: u32,
46     ) -> Result<u32, JsValue>;
47 }
48