Closed
Bug 223410
Opened 21 years ago
Closed 21 years ago
Adding a title attribute to a link element disables printing stylesheet
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: brian, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Providing a name for a printing (or all-media) stylesheet disables the
stylesheet when printing.
Reproducible: Always
Steps to Reproduce:
1. Add a link element to a print stylesheet (without a title att) to a web page.
2. Print: the stylesheet is used.
3. Add a title attribute to the link tag.
4. Print: the stylesheet is not used.
Several other sites can be used for testing, such as
http://www.meyerweb.com/eric/css/ .
This seems to apply to both Mozilla (App Suite) and Firebird.
Comment 1•21 years ago
|
||
A title makes the sheet an alternate stylesheet. More precisely, when a page is
loaded only sheets with one given title are enabled. In this case, that title
is "Test (screen)", since that's the first preferred sheet we hit and multiple
preferred sets are not allowed.
See http://www.w3.org/TR/html401/present/styles.html#h-14.3.1 and the next section.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•21 years ago
|
||
This is the only instance I have encountered in which the title attribute
affects processing.
Thanks for the explanation!
Comment 3•21 years ago
|
||
*** Bug 224014 has been marked as a duplicate of this bug. ***
Comment 4•21 years ago
|
||
*** Bug 224769 has been marked as a duplicate of this bug. ***
Comment 5•20 years ago
|
||
*** Bug 283086 has been marked as a duplicate of this bug. ***
Comment 6•19 years ago
|
||
*** Bug 279338 has been marked as a duplicate of this bug. ***
Comment 7•19 years ago
|
||
This does not just affect print styles. If the print style sheet with a title is
first in a list of style sheets, Firefox ignores the other style sheets when
rendering the page.
<link rel="stylesheet" type="text/css" href="../css/mainprint.css" title="print"
media="print" />
<link rel="stylesheet" type="text/css" href="../css/main.css" title="main"
media="screen" />
<link rel="stylesheet" type="text/css" href="../css/handheld.css"
title="handheld" media="handheld" />
<link rel="alternate stylesheet" type="text/css" href="../css/main1.css"
title="main1" media="screen" />
If I remove the title from the "print" style sheet, the other style sheets are
used in rendering the page.
I've read the description of Resolution and INVALID says that it is not a bug.
However I do not see any reason or explaination as to why this is not a bug. I
believe that this is a serious bug. Please explain why it is not.
Comment 8•19 years ago
|
||
> However I do not see any reason or explaination as to why this is not a bug.
Please see comment 1 and then go and actually read the HTML specification for
<link>.
You need to log in
before you can comment on or make changes to this bug.
Description
•