Skip to content

HTMLStyleElement

Generated from idl/html.webidl when the site was built at 7aa23e2.

HTMLStyleElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. It includes LinkStyle. What it does is on MDN; this page says what niso has of it.

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
<style> Widely available Partial 38% 13 of 34 subtests pass 3
CSS object model Widely available Partial 55% 123 of 221 subtests pass 1
constructor
[HTMLConstructor] constructor();
attribute
attribute boolean disabled;
int32_t niso_html_style_element_get_disabled(niso_dom* dom, niso_handle self, bool* out);
int32_t niso_html_style_element_set_disabled(niso_dom* dom, niso_handle self, bool value);
attribute
attribute DOMString media;
int32_t niso_html_style_element_get_media(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_html_style_element_set_media(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute CSS object model: Partial 55% from LinkStyle
readonly attribute CSSStyleSheet? sheet;
int32_t niso_link_style_get_sheet(niso_dom* dom, niso_handle self, niso_handle* out);

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.

  • blocking (blocking=“render”)