@media in STYLE_SHEETS_USE

Hi,

Another set of small bugs regarding "3.22 STYLE_SHEETS_USE":
* "@media rule" should read "@media at-rule"
* it makes no sense to restrict the warning on the fact that there is
only a single @media screen rule; I think what was meant was: if all the
CSS rules only apply to the screen media type, warn
* HTML 4.01 (which defines the rules that apply for XHTML 1.x as far as
I know) defines that the default value of the media attribute (both for
<style> and <link>) is "screen":
http://www.w3.org/TR/1999/REC-html401-19991224/present/styles.html#adef-media ; in other words, if nothing is specified, the default is that the rules only apply to screen; that's probably worth clarifying explicitly in the test
* relatedly, if we do assume the media attribute defaults to "screen",
this means that a conformant user agent only reading @media handset
wouldn't read anything in the following <style>:
<style type="text/css">
@media handset {
..red { color:red;}
}
</style>

(because this style should be assumed to be in media screen, and so
wouldn't even need to be parsed by a handset);

I doubt this is what happens in practice, though; but at least, this may
deserve some clarification in the document.

Dom

http://www.w3.org/TR/2007/WD-mobileOK-basic10-tests-20070130/#test_style_sheets_use

Received on Tuesday, 3 April 2007 12:40:16 UTC