Closed Bug 205486 Opened 21 years ago Closed 19 years ago

Bad Print Preview on page using CSS positioning

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 154892

People

(Reporter: jarvis, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win98; cs-CZ; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Win98; cs-CZ; rv:1.3) Gecko/20030312

Text overflow in Print Preview at the bottom of the page (the rest should be
wrapped).
Bad link color in Print Preview according to the CSS declaration.

Reproducible: Always

Steps to Reproduce:
1. Open the mentioned page.
2. Choose File/Print Preview

Actual Results:  
The same problem.

Expected Results:  
1. The text should wrap into more pages.
2. The link color should be black.
Confirming overflowing text with 2003050714/trunk/W2K.

Color of links in PP is IMHO correct. In CSS file for print are specified these
rules:

A {font-size:12pt;color:#000000;font-family:garamond CE, garamond, serif;        }
A:Visited  {}
A:Active  {}
A:Hover  {}

but Mozilla (as useragent) has rule for a:link (see Edit | Preferences |
Appearence | Colors | Link Colors). If you change first rule to a:link, you may
get color what you want.
I'm confirming this bug for the first part.  Someone may have to tweak the
summary to reflect this (I don't have enough privileges to do this).

For the second part, in my style sheets I have "A, A:link" (without the quotes)
in place of just your A and everything works fine.  You might try that to see if
it works.

P.S. Generally its one bug per report so that everything can be tracked
separately.  Please try to keep that in mind.  Thanks!
Status: UNCONFIRMED → NEW
Ever confirmed: true
I can reproduce the same problem (both in print preview and in the final printed
output), along with problems positioning text on the page (sections of text end
up on top of each other).

I have tested this on Mozilla 1.5a for Linux, 1.4 for Linux, and 1.4 for
Windows, 1.4 for MacOS X, and they all have the same problem.  I also tested
with Mozilla Firebird 0.6.1, which also had the same problem.  (Interestingly,
Konqueror also has the problem with sections of text printing on top of each
other, though Safari, supposedly using the Konqueror code, gets it right.)

I have set aside a test case that displays this, and that validates against the
W3C validators both for HTML and for CSS:

http://www.math.lsu.edu/calendar/bugreport.html
This WORKSFORME. Can someone still reproduce the mentioned problems?
Yes, I am still confirming this on Mozilla 1.7.5 for Linux and Firefox 1.0 for
Linux, using the same test case at
http://www.math.lsu.edu/calendar/bugreport.html -- some of the conditions that
used to be there have cleared up a little (text is no longer overlapping in
strange ways in the titles) but it still flows right off the bottom of the
screen, with print preview telling me that there is only one page to print.
The testcase mentioned in comment 3 and comment 5 shows bug 154892 -- most of
the content is in an absolutely positioned div.

Same for the page in the URL field.

Marking duplicate.

*** This bug has been marked as a duplicate of 154892 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Component: DOM: HTML → DOM: Core & HTML
QA Contact: desale → general
You need to log in before you can comment on or make changes to this bug.