Skip to content

Screen

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

Screen is an interface in idl/html.webidl, exposed in Window. What it does is on MDN; this page says what niso has of it.

niso’s screen is its viewport.

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
Screen Widely available Full 16 of 16 subtests pass 7
attribute
readonly attribute long availWidth;
int32_t niso_screen_get_avail_width(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute long availHeight;
int32_t niso_screen_get_avail_height(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute long width;
int32_t niso_screen_get_width(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute long height;
int32_t niso_screen_get_height(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute unsigned long colorDepth;
int32_t niso_screen_get_color_depth(niso_dom* dom, niso_handle self, uint32_t* out);
attribute
readonly attribute unsigned long pixelDepth;
int32_t niso_screen_get_pixel_depth(niso_dom* dom, niso_handle self, uint32_t* 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.

  • change event (Window management)
  • isExtended (Window management)
  • orientation (Screen orientation)