web_sys/features/
gen_css.rs1pub 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_name = CSS)]
9 pub type JsNamespaceCss;
10 }
11 #[wasm_bindgen]
12 extern "C" {
13 #[cfg(web_sys_unstable_apis)]
14 #[cfg(feature = "HighlightRegistry")]
15 # [wasm_bindgen (static_method_of = JsNamespaceCss , js_class = "CSS" , getter , js_name = highlights)]
16 #[doc = "Getter for the `CSS.highlights` field."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/highlights)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `HighlightRegistry`, `css`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 pub fn highlights() -> HighlightRegistry;
25 # [wasm_bindgen (js_namespace = CSS , js_name = escape)]
26 #[doc = "The `CSS.escape()` function."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `css`*"]
31 pub fn escape(ident: &str) -> ::alloc::string::String;
32 # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)]
33 #[doc = "The `CSS.supports()` function."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `css`*"]
38 pub fn supports_with_value(property: &str, value: &str) -> Result<bool, JsValue>;
39 # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)]
40 #[doc = "The `CSS.supports()` function."]
41 #[doc = ""]
42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `css`*"]
45 pub fn supports(condition_text: &str) -> Result<bool, JsValue>;
46 }
47}