Closed Bug 97033 Opened 24 years ago Closed 24 years ago

stylesheets linked with titles are loaded as alt stylesheet

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Other
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: basic, Assigned: dbaron)

References

Details

Attachments

(5 files)

given a HTML page with <link rel="stylesheet" title="stylesheet 1" href="style1.css"> <link rel="stylesheet" title="stylesheet 2" href="style2.css"> <link rel="stylesheet" title="stylesheet 3" href="style3.css"> mozilla (build 2001082008) gives "stylesheet 2" and "stylesheet 3" as alternate stylesheets!! I'll make a testcase. Note that the correct way to do alternate stylesheets: <link rel="stylesheet" title="stylesheet 1" href="style1.css"> <link rel="alternate stylesheet" title="stylesheet 2" href="style2.css"> <link rel="stylesheet alternate" title="stylesheet 3" href="style3.css"> does not work in mozilla.
Attached file stylesheet 1
Attached file stylesheet 2
Attached file stylesheet 3
Attached file testcase
In testcase attachment 47158 [details] mozilla should be displaying the text "stylesheet 3" in blue and monospace font.
I forgot to mention that what actually happens is that "stylesheet 1" is displayed and in the View->Use Stylesheet menu I see none,"stylesheet 1", "stylesheet 2" and "stylesheet 3".
Our behavior is correct. See http://www.w3.org/TR/html4/present/styles.html#h-14.3 . In particular, see the following two statements in 14.3.2: " * To make a style sheet persistent, set the rel attribute to "stylesheet" and don't set the title attribute. * To make a style sheet preferred, set the rel attribute to "stylesheet" and name the style sheet with the title attribute. * To specify an alternate style sheet, set the rel attribute to "alternate stylesheet" and name the style sheet with the title attribute." "If two or more LINK elements specify a preferred style sheet, the first one takes precedence." Marking bug as INVALID. See the tests at http://www.bath.ac.uk/~py8ieh/internet/importtest/ for testcases.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
verified
Status: RESOLVED → VERIFIED
*** Bug 104538 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: