This translation is incomplete. Please help translate this article from English
La propiedad de sólo-lectura Window.devicePixelRatio retorna la relación de tamaño (vertical) de un pixel físico en el dispositivo de visualización actual respecto del de un dispositivo de tamaño de pixel independiente (dips).
No hay retrofunciones o eventos a escuchar cuando este valor cambia (por ejemplo, si usted arrastra la ventana entre displays con diferentes densidades de pixels).
Sintaxis
value = window.devicePixelRatio;
Especificación
| Especificación | Estado | Observaciones |
|---|---|---|
| CSS Object Model (CSSOM) View Module La definición de 'Window.devicePixelRatio' en esta especificación. |
Working Draft | Definición inicial |
Compatibilidad con navegadores
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
| Prestación | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Soporte básico | ? | ? | ? | ? | ? |
| Prestación | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Soporte básico | ? | ? | ? | ? | ? |