Closed
Bug 139010
Opened 23 years ago
Closed 23 years ago
A media-specific stylesheet embedded in a document will be ignored when printing.
Categories
(Core :: Printing: Output, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: zang, Assigned: rods)
References
()
Details
A media-specific stylesheet embedded in a document will be ignored when
printing. In the test case, there are two stylesheets: one for screen display
and one for print. If the print stylesheet is embedded in the document then it
is ignored when selecting either Print Preview or Print from the menu. Yet, when
the stylesheet is linked, it behaves normally.
Comment 1•23 years ago
|
||
confirmed on Linux, 1.0RC1.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: A media-specific stylesheet embedded in a document will be ignored when printing. → A media-specific stylesheet embedded in a document will be ignored when printing.
![]() |
||
Comment 2•23 years ago
|
||
Sorry, this is not a bug. On the page where you use <link>, the sheets have no
title so they are both persistent sheets, both enabled, and then the media attr
determines whether they are applied.
On the page where you use <style> you give the <style> elements a title attribute
and the two title attributes are different. Sheets with different titles cannot
be enabled at the same time, so one of them needs to be disabled. We disable the
later one (the earlier is treated as the preferred sheet, the later as an
alternate). Now when printing, the second sheet is not applied, since it is
disabled.
If you want both sheets to ever be applied at the same time they need to have the
same title attribute.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•