web_sys/features/
gen_css.rs

1pub mod css {
2    #![allow(unused_imports)]
3    #![allow(clippy::all)]
4    use super::super::*;
5    use wasm_bindgen::prelude::*;
6    #[wasm_bindgen]
7    extern "C" {
8        # [wasm_bindgen (js_namespace = CSS , js_name = escape)]
9        #[doc = "The `CSS.escape()` function."]
10        #[doc = ""]
11        #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape)"]
12        #[doc = ""]
13        #[doc = "*This API requires the following crate features to be activated: `css`*"]
14        pub fn escape(ident: &str) -> ::alloc::string::String;
15        # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)]
16        #[doc = "The `CSS.supports()` function."]
17        #[doc = ""]
18        #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"]
19        #[doc = ""]
20        #[doc = "*This API requires the following crate features to be activated: `css`*"]
21        pub fn supports_with_value(property: &str, value: &str) -> Result<bool, JsValue>;
22        # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)]
23        #[doc = "The `CSS.supports()` function."]
24        #[doc = ""]
25        #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"]
26        #[doc = ""]
27        #[doc = "*This API requires the following crate features to be activated: `css`*"]
28        pub fn supports(condition_text: &str) -> Result<bool, JsValue>;
29    }
30}