1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

LibWeb/HTML: Port Window.devicePixelRatio to IDL

This commit is contained in:
Linus Groh 2023-03-06 22:10:10 +00:00
parent 46e547d774
commit 8454eb874f
3 changed files with 14 additions and 17 deletions

View file

@ -71,6 +71,7 @@ interface Window : EventTarget {
[Replaceable, ImplementedAs=screen_y] readonly attribute long screenTop;
[Replaceable] readonly attribute long outerWidth;
[Replaceable] readonly attribute long outerHeight;
[Replaceable] readonly attribute double devicePixelRatio;
// FIXME: Everything from here on should be shared through WindowOrWorkerGlobalScope
// https://w3c.github.io/hr-time/#the-performance-attribute