Hi all,

I ran into this problem and would like to know if there are others 
running into this as well.

Summary: the title attribute in a <link> to a CSS file causes Firefox 
and Safari to ignore the print version, while it works fine in IE. And 
IE does not support @import with media indications.

Extended version:

I have an HTML file (XHTML 1.0 Strict) that contains a link to a CSS file:

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

This works fine in Safari, Firefox (OS X and Win) and IE6.

After adding the print version:

<link href="theme.css" title="theme.css" rel="stylesheet" 
type="text/css" media="screen"/>
<link href="theme-print.css" title="theme-print.css" rel="stylesheet" 
type="text/css" media="print"/>


Firefox did display the screen version correctly, but displayed an 
unstyled print preview. Same goes for Safari. Internet Explorer 
displayed both correctly.

I experimented with:

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


with theme.css:

@import url(theme-screen.css) screen;
@import url(theme-print.css) print;


This works in Firefox and Safari, but not in Internet Explorer.

Finally:

<link href="theme.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="theme-print.css" rel="stylesheet" type="text/css" 
media="print"/>

i.e. without the title attribute,

works as intended in all browsers. If I understand the XHTML 1.0 Strict 
correctly, a title attribute is perfectly allowed in a link tag.

I hope someone can verify this and/or shed a light on it.

Bye, Helma
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to