Closed digisparkflow closed 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;
};
(I closed this but if there's a nuance I'm missing, please comment and I'll re-open!)
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.