Closed Bug 545944 Opened 15 years ago Closed 15 years ago

<link rel="alternate" media="print"> ignored

Categories

(Core :: Print Preview, defect)

1.9.2 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 104618

People

(Reporter: jpramirez, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)

Firefox is ignoring the applied stylesheet for printing when showing the Print Preview window, which is something IE does not.

Since Print Preview should show what you will get printed, the view should take into consideration the CSS applied for media="printer".

Reproducible: Always

Steps to Reproduce:
1.Open the URL.
2.Hit Print Preview.
3.Feast your eyes with the preview, more specifically with the side banners and ads that are not shown in IE's Print Preview.
Actual Results:  
Print Preview doesn't apply the correct CSS.  Side banners and ads are showing in Print Preview.

Expected Results:  
Print Preview should show the page without the side banners and ads.
IS this only an issue in the preview or also in the output ?
Component: General → Print Preview
Product: Firefox → Core
QA Contact: general → printing
Version: unspecified → 1.9.2 Branch
The page doesn't have a linked print stylesheet, it does have an linked reformatted print specific page though.

Seems IE will download that page and use it for printing if it's specified.
Hello Alex.  Not sure what you mean by not having a print stylesheet.  The page source shows it:

<link rel="alternate" media="print" href="/en-us/magazine/cc301495(printer).aspx" />

I haven't directly tried the URL, but remember that aspx pages can in fact return anything, not just HTML.  For example, you can use an aspx page to return a graphic from a database.  Hope this makes it clear.
Wait, I just saw link element with more detail.  It is not a stylesheet!  I now see what you mean.  It is an alternate link.  My bad.

Let's forget I said anything about stylesheets.  I have never seen a link element of this type before, and the media attribute led me to associate it with stylesheets.

You are correct.  The page doesn't seem to have a print stylesheet.

I guess the only thing remaining is:  Should have Firefox presented the alternative, the same as IE?  Not sure if this element is standard or MS-specific.
Summary: Printer Stylesheet ignored → <link rel="alternate" media="print"> ignored
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.