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 = CSSStyleRule , typescript_type = "CSSStyleRule")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `CssStyleRule` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"]
13     pub type CssStyleRule;
14     # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleRule" , js_name = selectorText)]
15     #[doc = "Getter for the `selectorText` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"]
selector_text(this: &CssStyleRule) -> String20     pub fn selector_text(this: &CssStyleRule) -> String;
21     # [wasm_bindgen (structural , method , setter , js_class = "CSSStyleRule" , js_name = selectorText)]
22     #[doc = "Setter for the `selectorText` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"]
set_selector_text(this: &CssStyleRule, value: &str)27     pub fn set_selector_text(this: &CssStyleRule, value: &str);
28     #[cfg(feature = "CssStyleDeclaration")]
29     # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleRule" , js_name = style)]
30     #[doc = "Getter for the `style` field of this object."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/style)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `CssStyleRule`*"]
style(this: &CssStyleRule) -> CssStyleDeclaration35     pub fn style(this: &CssStyleRule) -> CssStyleDeclaration;
36 }
37