W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Re: [mediaqueries] reevaluating media queries when the environment changes

From: Florian Rivoal <florian@rivoal.net>
Date: Thu, 26 Mar 2015 20:57:22 +0100
Cc: "www-style@w3.org" <www-style@w3.org>
Message-Id: <D6A96412-59C1-4899-8AFA-5759F91BD2E5@rivoal.net>
To: "Belov, Charles" <Charles.Belov@sfmta.com>

> On 26 Mar 2015, at 20:21, Belov, Charles <Charles.Belov@sfmta.com> wrote:
> 
> Does the case of failure of mobile browsers to reflow text in the case of spread-zoom-in fall under this issue? Or is that just failure of websites to use a max-width of the viewport width in their style sheets?
>  
> A presumable text test would be that I would expect a reflow in the case of the following CSS:
>  
> p, th, td, li {
>           max-width: 100vw;
> }

If by spread-zoom you mean what is commonly called pinch-zoom (like this http://upload.wikimedia.org/wikipedia/commons/c/cc/Pinch_zoom.png), then
no, that is not a violation of this rule. Pinch zoom works essentially as
a magnifying glass, and does not affect layout or trigger media queries.

To make things fit in the screen on a mobile browser, you need to use
the meta viewport, or its css alternative, @viewport. You can read up
about it here:

https://dev.opera.com/articles/an-introduction-to-meta-viewport-and-viewport/

 - Florian
Received on Thursday, 26 March 2015 19:57:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC