- From: Rune Lillesveen <rune@opera.com>
- Date: Tue, 19 Oct 2010 08:02:53 +0200
- To: www-style@w3.org
On Mon, 18 Oct 2010 23:00:40 +0200, Simon Fraser <smfr@me.com> wrote: > On Oct 18, 2010, at 2:47 AM, Rune Lillesveen wrote: > >> On Mon, 18 Oct 2010 10:33:33 +0200, Rune Lillesveen <rune@opera.com> >> wrote: >> >>> http://people.opera.com/rune/TR/ED-css-viewport-20101013/ >> >> I would like to remove the "default viewport width" concept from the >> spec and have the UAs replace it with a UA stylesheet like this if they >> want a default width: >> >> @viewport { width: desktop-width; } > > I think 'desktop-width' is confusing value here. It's not the width of > the desktop. I don't have a better alternative right now. I do. We can just drop it. I don't really see a use case for it. The UA stylesheet could just use a px length instead. For instance: @viewport { width: 980px } > I also think the 'device-width' and 'device-height' value names are > misleading, since the web view may not fill the entire screen. These are > more like 'window-width' or 'view-width'. Not really. 'device-width' and 'device-height' are intended to be the same as in Media Queries. That is also the case for 'device-width' and 'device-height' in the viewport meta properties in Safari (not testable for device-width, but setting content="height=device-height" gives 480px height and content="initial-scale=1" gives 356px (depends on you UI config, really) which is 'window-height'/'view-height'). The way to set the width/height to the window height with @viewport would be: @viewport { width: 100%; } -- Rune Lillesveen Senior Core Developer / Architect Opera Software ASA
Received on Tuesday, 19 October 2010 06:03:36 UTC