W3C home > Mailing lists > Public > www-style@w3.org > October 2013

[mediaqueries4] zoom-ratio as a media feature

From: Alex Bell <alex@bellandwhistle.net>
Date: Wed, 09 Oct 2013 01:06:31 +0000
Message-ID: <20131008180559.113511bfl7xrsik7@webmail.bellandwhistle.net>
To: www-style@w3.org

Current developer efforts to reliably measure user zoom are basically  
a shambles. There are dozens of different techniques, none of which  
are truly comprehensive cross-browser. The most encyclopedic of all  
approaches, the maniacally detailed 'detect-zoom' has been badly  
broken on the desktop by recent changes to FF18 and Chrome 27. FF 18+  
now change the 'devicePixelRatio' value on manual zoom (cmd/ctrl +/-),  
arguably distorting the meaning of the word 'device'. On Chrome,  
webkitTextSizeAdjust was deprecated on the desktop, the only  
bulletproof method. For the whole convoluted story see:


One of the things that seems to trip up all discussion of this is that  
some code bases tie zoom to resolution, while others do not.  
Everybody's doing it their own way. This is an area that is just  
screaming for standardization.

I realize I am probably wading into a few long-standing debates here,  
but IMHO user zoom should be queryable through window.matchMedia. The  
property could be called 'zoom-ratio', to make it absolutely clear  
that it's a ratio, and it should accept min/max prefixes. I propose  
that this be added to Media Queries Level 4.

If I'm late to the discussion, or just totally wrong, I would really  
appreciate a nice clear explanation of why this is impossible, or a  
bad idea.

Thanks for all your hard work,
Received on Wednesday, 9 October 2013 11:52:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:02 UTC