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

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

From: Rune Lillesveen <rune@opera.com>
Date: Thu, 3 Oct 2013 14:16:11 +0200
Message-ID: <CANz6XvRbEZiYjD4ucUFfGUyN1HN4cJr0ZqV8KAwsc9tZZZWHBg@mail.gmail.com>
To: www-style list <www-style@w3.org>

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

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

Rune Lillesveen
Received on Thursday, 3 October 2013 12:16:42 UTC

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