Reputation: 1019
How's the css tag -webkit-min-device-pixel-ratio
implemented in JavaScript?
Upvotes: 0
Views: 225
Reputation: 641
If I've understood your question correctly, you can access this property in JavaScript using the following property of the window
object:
window.devicePixelRatio
Upvotes: 1
Reputation: 324650
Any CSS property has a corresponding property of the style
object. This includes vendor extensions.
elem.style.WebkitMinDevicePixelRatio = "...";
Upvotes: 0