@media print {color # 999999;} is not recognized in Fire Fox

It seems to me that Firefox doesn’t correctly process the statement in the CSS file. Maybe I'm wrong, I would like to fix it.

Here is the relevant part of my CSS:

@media print { div.entry a:link { text-decoration:none; color:#999; } } 

When I print my page, links print in black, regardless of the value after the color: command , if the color is specified in hexadecimal notation, as indicated above.

I wonder if I changed the line to something like color:yellow; then the links will be printed in yellow. Internet Explorer also prints links in gray (# 999). So, I think this is a bug in Firefox. If not, please let me know.

I am using FF 3.6

+4
source share
2 answers

Seems possible with

  • File menu , Page Setup item
  • Format tab and options
  • Check Print Background in Options

I don’t know how I could forget it, but I did it.

+1
source

It is not related to @media print or the hexadecimal representation, but Firefox changes all gray to black. You can try removing @media or changing the color to #ff0 or gray to see that they are irrelevant.

The entire gray channel is displayed in black, probably to ensure that white-on-black text can be read when printing without background.

This issue was reported at https://bugzilla.mozilla.org/show_bug.cgi?id=470854 , but nobody seems to care. See http://www.sanbeiji.com/archives/953 for more details (although it says “fixed in Firefox 3,” it’s not).

+7
source

All Articles