summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_Document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_Document.rs')
-rw-r--r--vendor/web-sys/src/features/gen_Document.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_Document.rs b/vendor/web-sys/src/features/gen_Document.rs
index d2ad9eb37..b910b43c3 100644
--- a/vendor/web-sys/src/features/gen_Document.rs
+++ b/vendor/web-sys/src/features/gen_Document.rs
@@ -2155,6 +2155,33 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Document`*"]
pub fn release_capture(this: &Document);
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "ViewTransition")]
+ # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = startViewTransition)]
+ #[doc = "The `startViewTransition()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn start_view_transition(this: &Document) -> Result<ViewTransition, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "ViewTransition")]
+ # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = startViewTransition)]
+ #[doc = "The `startViewTransition()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn start_view_transition_with_update_callback(
+ this: &Document,
+ update_callback: Option<&::js_sys::Function>,
+ ) -> Result<ViewTransition, JsValue>;
#[cfg(feature = "Element")]
# [wasm_bindgen (method , structural , js_class = "Document" , js_name = elementFromPoint)]
#[doc = "The `elementFromPoint()` method."]