CSSStyleDeclaration
Generated from idl/html.webidl when the site was built at 7aa23e2.
CSSStyleDeclaration is an interface in idl/html.webidl, exposed in Window. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| CSS object model | Widely available | Partial 55% 123 of 221 subtests pass | 8 |
Members
Section titled “Members”cssText
Section titled “cssText”attribute DOMString cssText;int32_t niso_css_style_declaration_get_css_text(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_css_style_declaration_set_css_text(niso_dom* dom, niso_handle self, const char* value, size_t value_len);length
Section titled “length”readonly attribute unsigned long length;int32_t niso_css_style_declaration_get_length(niso_dom* dom, niso_handle self, uint32_t* out);item()
Section titled “item()”getter DOMString item(unsigned long index);int32_t niso_css_style_declaration_item(niso_dom* dom, niso_handle self, uint32_t index, niso_str* out);getPropertyValue()
Section titled “getPropertyValue()”DOMString getPropertyValue(DOMString property);int32_t niso_css_style_declaration_get_property_value(niso_dom* dom, niso_handle self, const char* property, size_t property_len, niso_str* out);getPropertyPriority()
Section titled “getPropertyPriority()”DOMString getPropertyPriority(DOMString property);int32_t niso_css_style_declaration_get_property_priority(niso_dom* dom, niso_handle self, const char* property, size_t property_len, niso_str* out);setProperty()
Section titled “setProperty()”undefined setProperty(DOMString property, [LegacyNullToEmptyString] DOMString value, optional [LegacyNullToEmptyString] DOMString priority = "");int32_t niso_css_style_declaration_set_property(niso_dom* dom, niso_handle self, const char* property, size_t property_len, const char* value, size_t value_len, const char* priority, size_t priority_len);removeProperty()
Section titled “removeProperty()”DOMString removeProperty(DOMString property);int32_t niso_css_style_declaration_remove_property(niso_dom* dom, niso_handle self, const char* property, size_t property_len, niso_str* out);supportedProperties()
Section titled “supportedProperties()”[NisoInternal] static sequence<DOMString> supportedProperties();int32_t niso_css_style_declaration_supported_properties(niso_dom* dom, niso_strs* out);The CSS properties stylo supports, aliases included, for the glue’s camel-cased attributes.
Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
@@iterator(CSS object model)parentRule(CSS object model)