472,143 Members | 1,418 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 1627
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.