Open Bug 314622 Opened 19 years ago Updated 2 years ago

xml-stylesheet with media="print" is ignored in printing

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

People

(Reporter: hubert+bmo, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051101 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051101 Firefox/1.6a1

The xml-stylesheet processing instruction with media="print" is ignored in printing. Look at the testcase (URL - see above).

Reproducible: Always

Steps to Reproduce:
Example:
==========
XHTML file
==========
<?xml-stylesheet href="./main.css" type="text/css" media="screen, projection" title="Main style"?>
<?xml-stylesheet href="./print.css" type="text/css" media="print" title="Print version"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Printing in Gecko - testcase</title>
</head>
<body>
	<p>This text should be &quot;green&quot; on screen but &quot;red&quot; on print. Try to print this page.</p>

</body>
</html>

=========
CSS files
=========
--------
main.css
--------
p
{
	color: green;
}

---------
print.css
---------
p
{
	color: red;
}

===========
Media types
===========
xhtml - application/xhtml+xml
css - text/css
Actual Results:  
Text on screen is green, in printing - is black.

Expected Results:  
Text on screen is green, in printing - is red.
Attached file testcase - main.css
Attached file testcase - print.css
Attached file testcase.xhtml
Keywords: testcase
Related to/duplicate of bug 210460?
Assignee: printing → nobody
QA Contact: printing
Status: UNCONFIRMED → NEW
Ever confirmed: true
This issue still exists (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0) Gecko/20100101 Firefox/54.0).
OS: Linux → All
Hardware: x86 → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: