Merge pull request #832 from myelin-ai/device-pixel-ratio

Add devicePixelRatio to Window
This commit is contained in:
Nick Fitzgerald 2018-09-17 10:12:43 -07:00 committed by GitHub
commit 1ee579093b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,7 @@ partial interface Window {
[Throws, NeedsCallerType] attribute any screenY;
[Throws, NeedsCallerType] attribute any outerWidth;
[Throws, NeedsCallerType] attribute any outerHeight;
[Replaceable] readonly attribute double devicePixelRatio;
};
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/RequestAnimationFrame/Overview.html