Re: [css-device-adapt] Apply @viewport to top-level documents only

I don't think this is a good idea. I think one of the main use case of 
@viewport is to be embedded into @media to fallback to a known amount of 
fixed-size layouts even under any real pixel size as viewport, or for slide 
decks this is a way to make sure your content is always rendered under a 
fixed-size resolution and "scaled-to-fit" into the user browser. Documents 
inside an iframe totally want this behavior to continue to work.



-----Message d'origine----- 
From: Rune Lillesveen
Sent: Thursday, October 03, 2013 2:16 PM
To: www-style list
Subject: [css-device-adapt] Apply @viewport to top-level documents only

Hi,

I propose to resolve [1] by making @viewport apply to top level
documents only, and add the following text to chapter 4:

# @viewport rules apply to top level documents only.

This is in line the fact that the implementations of <meta
name=viewport> only apply to top level documents. It's straightforward
to apply the width and height to frames and iframes, but it isn't
obvious to me how independent pinch zoom for frames and the top level
document should work. Discussion could be revived if there will be a
level 2 of the spec.

Is "top level documents" an acceptable term in a CSS spec?

The HTML spec uses "top level browsing context". I don't know if this
limitation has been applied in other CSS specs, or which term has been
used.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=21788

-- 
Rune Lillesveen

Received on Thursday, 3 October 2013 12:24:20 UTC