summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_css.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_css.rs')
-rw-r--r--vendor/web-sys/src/features/gen_css.rs29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_css.rs b/vendor/web-sys/src/features/gen_css.rs
new file mode 100644
index 000000000..f18a5dad2
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_css.rs
@@ -0,0 +1,29 @@
+pub mod css {
+ #![allow(unused_imports)]
+ use super::super::*;
+ use wasm_bindgen::prelude::*;
+ #[wasm_bindgen]
+ extern "C" {
+ # [wasm_bindgen (js_namespace = CSS , js_name = escape)]
+ #[doc = "The `CSS.escape()` function."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `css`*"]
+ pub fn escape(ident: &str) -> String;
+ # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)]
+ #[doc = "The `CSS.supports()` function."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `css`*"]
+ pub fn supports_with_value(property: &str, value: &str) -> Result<bool, JsValue>;
+ # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)]
+ #[doc = "The `CSS.supports()` function."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `css`*"]
+ pub fn supports(condition_text: &str) -> Result<bool, JsValue>;
+ }
+}