w3c / window-management

Window Management API
https://www.w3.org/TR/window-management/
Other
95 stars 25 forks source link

ScreenDetailed height, availHeight, width, and availWidth #109

Closed digisparkflow closed 1 year ago

digisparkflow commented 1 year ago

In the current implementation (Chrome 103.0.5060.114 and Edge 104.0.1293.47), the ScreenDetailed interface includes many attributes that are not in the Editor's Draft section 3.4, though they are mentioned in Example 1 and in section 2.11. Is the omission from section 3.4 intentional? My team is particularly interested in the attributes in the issue title, though some other observable properties of screens would be helpful as well.

inexorabletash commented 1 year ago

ScreenDetailed derives from Screen which is where those properties are defined:

[Exposed=Window, SecureContext]
interface ScreenDetailed : Screen {
   ...
};

https://drafts.csswg.org/cssom-view-1/#screen

[Exposed=Window]
interface Screen {
  readonly attribute long availWidth;
  readonly attribute long availHeight;
  readonly attribute long width;
  readonly attribute long height;
  readonly attribute unsigned long colorDepth;
  readonly attribute unsigned long pixelDepth;
};
inexorabletash commented 1 year ago

(I closed this but if there's a nuance I'm missing, please comment and I'll re-open!)