Closed Bug 287642 Opened 19 years ago Closed 17 years ago

overflow:hidden causes rendering issue in Print Preview

Categories

(Core :: Web Painting, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 129941

People

(Reporter: oc106, Assigned: roc)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.6) Gecko/20050321 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.6) Gecko/20050321 Firefox/1.0.2

It seems that for an HTML block with its CSS "overflow" style set to "hidden"
that should be clipped by the "page" boundary in Print Preview, it actually
spills onto the grey background below the page.

Reproducible: Always

Steps to Reproduce:
1. Create an HTML page with a <DIV style="overflow:hidden"> element with enough
content to require more than one printable page (use the example I posted:
http://olifilth.co.uk/41.htm).
2. View in Mozilla
3. Go to Print Preview

Actual Results:  
Text content spills onto background below visible pages in Print Preview.

Expected Results:  
Should've been clipped at the edges of the visible page.
Oops, wrong user-agent string. Should've been:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050324
Confirmed
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217
Confirmed New since also in latest nightly
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050328

Changing to Core, Print Preview
Status: UNCONFIRMED → NEW
Component: General → Print Preview
Ever confirmed: true
Product: Mozilla Application Suite → Core
Version: unspecified → Trunk
Over to view rendering.  Reporter, could you please attach the testcase to the bug?
Assignee: general → roc
Component: Print Preview → Layout: View Rendering
QA Contact: general → ian
Is this bug also the reason why printing doesn't work properly on this page: http://aftonbladet.se/vss/nyheter/story/utskrift/0,3258,1030980,00.html

The appearance of that page seems to be similar to this testcase when selecting Print Preview.
marking as a dup of bug 129941 b/c it describes the same problem and at least has some code contributed to it, albeit fairly old.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: