web_sys/features/
gen_CssFontFaceRule.rs1#![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 = "CSSFontFaceRule",
11 typescript_type = "CSSFontFaceRule"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `CssFontFaceRule` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `CssFontFaceRule`*"]
19 pub type CssFontFaceRule;
20 #[cfg(feature = "CssStyleDeclaration")]
21 #[wasm_bindgen(method, getter, js_class = "CSSFontFaceRule", 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/CSSFontFaceRule/style)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `CssFontFaceRule`, `CssStyleDeclaration`*"]
27 pub fn style(this: &CssFontFaceRule) -> CssStyleDeclaration;
28}