469,327 Members | 1,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

What's the default media?

Hello everyone,

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'.

<link rel="stylesheet" type="text/css" href="layout.css" />

Thanks,

Bing

Feb 1 '06 #1
6 1490
du****@gmail.com wrote:
Hello everyone,

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".
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Feb 1 '06 #2
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.

--
Spartanicus
Feb 1 '06 #3

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

Feb 1 '06 #4

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

Feb 1 '06 #5
du****@gmail.com 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?


Defaulting to "screen" is a silly spec requirement, implementing it in
browsers that need to deal with the world wild web would result in quite
a few pages being rendered unstyled.

--
Spartanicus
Feb 1 '06 #6
du****@gmail.com wrote:
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?


Looks like it.

--
Spartanicus
Feb 1 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Eric Lindsay | last post: by
10 posts views Thread by Pete | last post: by
reply views Thread by Konrad | last post: by
reply views Thread by kplazinski | last post: by
reply views Thread by kplazinski | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.