Skip to content

Commit 1ee5790

Browse files
authored
Merge pull request #832 from myelin-ai/device-pixel-ratio
Add devicePixelRatio to Window
2 parents a897715 + 170ac21 commit 1ee5790

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/web-sys/webidls/enabled/Window.webidl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ partial interface Window {
198198
[Throws, NeedsCallerType] attribute any screenY;
199199
[Throws, NeedsCallerType] attribute any outerWidth;
200200
[Throws, NeedsCallerType] attribute any outerHeight;
201+
[Replaceable] readonly attribute double devicePixelRatio;
201202
};
202203

203204
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/RequestAnimationFrame/Overview.html

0 commit comments

Comments
 (0)