// Do not edit. This file is generated.
// MoonBit type: CSS
// Specifications: cssom.idl
///|
/// [CSS](https://developer.mozilla.org/en-US/docs/Web/API/CSS)
#external
pub type CSS
///|
pub impl TJsValue for CSS with to_js(self : CSS) -> JsValue = "%identity"
///|
pub impl FromJsAny for CSS with from_js_any(value : JsAny) -> CSS = "%identity"
///|
/// [CSS.escape](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape)
pub fn CSS::escape(ident : CSSOMString) -> CSSOMString {
css_escape_ffi(TJsValue::to_js(ident))
}
///|
#cfg(target="js")
extern "js" fn css_escape_ffi_js(ident : JsValue) -> JsValue = "(ident) => CSS.escape(ident)"
///|
#cfg(target="js")
fn css_escape_ffi(ident : JsValue) -> CSSOMString {
css_escape_ffi_js(ident).unsafe_cast()
}
///|
#cfg(target="wasm-gc")
fn css_escape_ffi_wasm(ident : JsValue) -> JsValue = "webapi_CSS" "escape"
///|
#cfg(target="wasm-gc")
fn css_escape_ffi(ident : JsValue) -> CSSOMString {
jsvalue_to_string(css_escape_ffi_wasm(ident))
}