Re: Empty string in media queries

Also sprach Ian Hickson:

 > > [media query issues]
 > 
 > I'd also like to add an issue that came out ofhte HTML5 work, namely that 
 > it'd be nice if we defined the lack of a media query string to mean "all". 
 > (That way, I don't have to explicitly cover the case of no media queries 
 > in the attribute in HTML5, where it would be somewhat awkward to cover.)

So, in HTML you could write:

  <link rel="stylesheet" media="" href="http://...." />

and it would be treated as if the media attribute wasn't present. This
makes sense.

In CSS, you could write:

  @media {
     ....
  }

Should the style sheet within be applied? It would be consistent with
HTML to do so.

Cheers,

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Wednesday, 9 January 2008 15:59:55 UTC