W3C home > Mailing lists > Public > www-style@w3.org > February 2002

Media queries last call comments

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Thu, 21 Feb 2002 23:35:55 +0100
Message-ID: <027401c1bb28$20c74220$b3f5a8c0@cwi.nl>
To: <www-style@w3.org>
Cc: "HTML WG" <w3c-html-wg@w3.org>
Apologies for the day lateness.

Stylesheet: Please replace body {font-size: medium} with
body {font-size: 100%}
The user should decide how big the base font is. Medium is too big for me,
and will be too small for others.

"Screen" and "print" are two of media types that have been defined.
=> of the media types

1. Background, first example
Doesn't really match the description. Use
@media screen { * {font-family: sans-serif}
or change the description to "For example, a document may use different
style sheets for on screen and printing".

Media-specific style sheets are supported by several User Agents. The most
commonly used feature is, as in the example above, to distinguish between
"screen" and "print".
=> add: and "projection" is beginning to catch on.

Make it clear that sections 1-3 are informative, and 4-7 are normative.
(isn't it weird that RFC2534 uses the American spelling "color" with the
English spelling "grey"?)

style.com=>example.com (everywhere) (style.com is the website of Vogue)

6. Media features.
"pretext" means something else. The correct word is "prefix" (replace

6.1  width
The "em" value is based on the font size of the root element.
Hmm. And how do you hope to determine that if you haven't loaded any
stylesheets yet? I don't see how this can reliably work.

6.3 and 6.4 device-width/-height
What is the difference between the device-width and the viewport width?
You'll need to explain.

6.5 device-aspect-ratio
Frankly I would want some slop here. I'd hate to be turned away at the doors
of my style-sheet because my number of bits was slightly different.
Other questions:
- Why can I enquire of the device, but not of the viewport?
- Why can't I just ask if it is landscape or portrait?
- Why aren't there prefixes for this property? max-device-ratio: 1/1 would
give me portrait or square; min-device-ratio: 1/1 would give me landscape or
square for instance.

6.9. Resolution
Only inches? All the adverts *I* read talk about screen resolution in terms
of dot pitch, expressed in mm (which is mm/dot instead of dot/in). For
instance 96dpi is about a dot pitch of .26mm

I applaud you for using the word "resolution" correctly (which most people
seem to think means "number of bits" when talking about screens).

You should be clearer here and in 6.3, 6.4, 6.5, that you are talking about
(as I assume) the resolution that the device is operating at, and not its
maximum possible resolution (many people seem to run their 1024x748 monitors
at 800x600 in order to get larger fonts, because no one knows how to tell
their operating system what the resolution of their screen is; I'm assuming
that the enquiries give the 800x600 value and not the finer one).

6.10 scan
How on earth would you use this to decide on which stylesheet to use? Just

7. Units
Same problem as 6.1: how can you determine the value on the root element
while you are still trying to determine which stylesheet to load?

Best wishes,

Steven Pemberton
Received on Thursday, 21 February 2002 17:35:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:00 UTC