Closed
Bug 253860
Opened 21 years ago
Closed 21 years ago
When the "title" attribute is used within a <link> tag calling a style sheet the sheet is ignored.
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jim, Assigned: dbaron)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
The following tag works (on my site, www.depressepdress.com):
<link rel="stylesheet" type="text/css" href="../../Assets/Styles/Standard.css" />
However this fails (both examples are valid HTML):
<link rel="stylesheet" type="text/css" href="../../Assets/Styles/Standard.css"
title="Standard" />
The failure is complete: no style information contained in the external sheet is
applied to the document.
I'm not sure if the position of the title tag is at fault or if the problem
occurs with other uncommon (but still legal) attributes of the <link> tag.
I am also calling multiple style sheets with the link tag - that may have
something to do with it.
Reproducible: Always
Steps to Reproduce:
1. Load any page successfully calling an external style sheet with the <link> tag.
2. Load that page - the style in the external sheet should be applied.
3. Add a "title" attribute to the <link> tag calling a style sheet.
3. Refresh the page.
Actual Results:
The style in the external sheet are not applied to the display.
Expected Results:
Apply the styles.
Comment 1•21 years ago
|
||
This needs a URL or testcase that shows the problem.
Assignee: firefox → dbaron
Component: General → Style System (CSS)
Product: Firefox → Browser
QA Contact: firefox.general → ian
Version: unspecified → 1.7 Branch
Assignee | ||
Comment 2•21 years ago
|
||
Using separate titles creates multiple sets of alternate stylesheets, only one
of which is the preferred set. See the HTML 4 spec, and also note the
stylesheet switching UI in the lower left corner of the Firefox window.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•