W3C

Edit comment LC-1664 for Mobile Web Best Practices Working Group

Quick access to

Previous: LC-1592 Next: LC-1593

Comment LC-1664
:
Commenter: Dominique Hazael-Massieux <dom@w3.org>

or
Resolution status:

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.
194
(space separated ids)
(Please make sure the resolution is adapted for public consumption)


Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: 1664.html,v 1.1 2017/08/11 06:43:34 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org