Closed Bug 432447 Opened 16 years ago Closed 16 years ago

border-right in media="print" does not over-ride html

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: gary_johnson_53, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

an element with this class displays fine in html
.pUP
{
	border-right: 1px solid red;
}
entering this (an various permutations) should stop the display of the border-right in print preview

.pUP
{
border-right: none;
}


Reproducible: Always

Steps to Reproduce:
1. display test case file
2. hit print preview or print

Actual Results:  
the border-right displays

Expected Results:  
3. the border-right should not display
the html file for the test case
The print media test case
--> Invalid

The cascade uses the order of the stylesheets in the head

http://www.w3.org/TR/html401/present/styles.html#h-14.4

In this case you need to put the print media link after the style element.
Thanks Include all global style sheets first, specify media specific sheets after. 
<style type="text/css">
.pUP { 	border-right: 1px solid red; }
</style>
<STYLE media="print" type="text/css">
.pUP { 	border-right: none; }
</STYLE>
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: