du****@gmail.com wrote:
Spartanicus wrote: Johannes Koch <ko**@w3development.de> wrote:
> If media is not explicitly specified in link as shown below, what's the
> default media supposed to be, screen or all? I thought it should be
> 'all'.
<http://www.w3.org/TR/html4/present/styles.html#adef-media>:
The default value for this attribute is "screen".
Correct, but last time I checked no browser complied with this spec
requirement, those I tested assumed "all". When asked Opera seemed to be
aware of it's non spec compliant behaviour in this regard, but were
unwilling to change it.
Thanks for the pointer. That's what I saw too. I'm wondering why no
browser comlies with the spec?
Bing
I just noticed that the spec says the default value for media is
'screen', but look at
http://www.w3.org/TR/html4/present/styles.html#h-14.4, it says ' The
"techreport" stylesheet applies to all media.' when it explains the
example given below:
===
<LINK rel="stylesheet" media="aural" href="corporate-aural.css"
type="text/css">
<LINK rel="stylesheet" media="screen" href="corporate-screen.css"
type="text/css">
<LINK rel="stylesheet" media="print" href="corporate-print.css"
type="text/css">
<LINK rel="stylesheet" href="techreport.css" type="text/css">
<STYLE media="screen, print" type="text/css">
p.special { color: rgb(230, 100, 180) }
</STYLE>
===
So the spec does not comply with itself?
Bing