Closed Bug 239386 Opened 21 years ago Closed 21 years ago

Colored <hr> tags don't print or show up in print preview

Categories

(Core :: Printing: Output, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bakker, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 A colored <hr> tag used to print properly with Mozilla <= 1.4, but now when you try to print preview or print a page the horizontal rule is not shown. Example HTML: <html> <head> <style type="text/css"> <!-- hr{color:#0000aa;background-color:#0000aa;border:0;height:3px} --> </style> </head> <body> <hr> </body> </html> Reproducible: Always Steps to Reproduce: 1. Load example HTML in a browser 2. File->Print Preview 3. File->Print Actual Results: 1. A blue horizontal rule should be visible on screen. 2. The horizontal rule does not appear in the print preview. 3. The horizontal rule is not printed. Expected Results: 1. A blue horizontal rule should be visible on screen. 2. The horizontal rule should appear in the print preview. 3. The horizontal rule should be printed. This has been tested with Mozilla 1.4, Mozilla 1.6, 1.7 beta, and Firefox 0.8 on Windows 2000 and with Mozilla 1.6 on Linux. This behaviour may have started with Mozilla 1.5 but I am currently without a test machine to try that version.
Do you have printing of backgrounds turned off (the default setting)? In that case, what exactly do you expect to be blue, given that your CSS takes away the border?
Thanks for the quick response. Your right thats what was giving me the problem, checking the printing of backgrounds makes it work now. In older versions that check box didn't have to be checked to print that particular chunk of CSS so it caught me off guard. Normally I would have the borders on but this was the only chunk of CSS that I found that would render that <hr> the same way in IE and Moz.
In older builds <hr> was implemented totally differently (and more or less ignored all sorts of CSS, as well as ignoring that printing setting).
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.