- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Thu, 1 Jul 2010 16:47:27 +1200
- To: Sylvain Galineau <sylvaing@microsoft.com>
- Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
- Message-ID: <AANLkTilB2QpWzS4ZO3SwPb1CoEIB7W6ey51OS_8KySNy@mail.gmail.com>
On Thu, Jul 1, 2010 at 12:51 PM, Sylvain Galineau <sylvaing@microsoft.com>wrote: > The UA needs a clue from the author to figure out whether: > - The content can be rendered on a virtual viewport that looks 19" to the > app (as on, say, an iPhone-type browser) > - The content should be rendered on the 'real' viewport where 1" square > means 1" square of the screen's physical surface > > Which implies you'd know which kind of viewport you're rendering to in > order to evaluate the truemm media query for a match, > right ? > I don't understand the question. There aren't different kinds of viewports here, just different units for measuring the viewport. If the author wants to render a 1" square on the screen's physical surface, use 25.4truemm. If the author wants to render a 1" square when printed, and some usable analogue of that for other media, use 1in. If the author wants to apply certain style rules when the output device is wide enough for 10 1" squares on the screen's physical surface, use @media screen (min-width: 254truemm) { ... }. If the author wants to apply certain style rules when the output device is wide enough for 10 1" printed squares, and 10 "1in" squares for other media, use @media screen (min-width: 10in) { ... }. Rob -- "He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]
Received on Thursday, 1 July 2010 04:56:12 UTC