Skip to main content

web_sys/features/
gen_CssConditionRule.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "CssGroupingRule",
9        extends = "CssRule",
10        extends = "::js_sys::Object",
11        js_name = "CSSConditionRule",
12        typescript_type = "CSSConditionRule"
13    )]
14    #[derive(Debug, Clone, PartialEq, Eq)]
15    #[doc = "The `CssConditionRule` class."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"]
20    pub type CssConditionRule;
21    #[wasm_bindgen(
22        method,
23        getter,
24        js_class = "CSSConditionRule",
25        js_name = "conditionText"
26    )]
27    #[doc = "Getter for the `conditionText` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"]
32    pub fn condition_text(this: &CssConditionRule) -> ::alloc::string::String;
33    #[wasm_bindgen(
34        method,
35        setter,
36        js_class = "CSSConditionRule",
37        js_name = "conditionText"
38    )]
39    #[doc = "Setter for the `conditionText` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"]
44    pub fn set_condition_text(this: &CssConditionRule, value: &str);
45}