Skip to main content

web_sys/features/
gen_CssPageRule.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 = "CssRule",
9        extends = "::js_sys::Object",
10        js_name = "CSSPageRule",
11        typescript_type = "CSSPageRule"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `CssPageRule` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `CssPageRule`*"]
19    pub type CssPageRule;
20    #[cfg(feature = "CssStyleDeclaration")]
21    #[wasm_bindgen(method, getter, js_class = "CSSPageRule", js_name = "style")]
22    #[doc = "Getter for the `style` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule/style)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `CssPageRule`, `CssStyleDeclaration`*"]
27    pub fn style(this: &CssPageRule) -> CssStyleDeclaration;
28}