Closed
Bug 367726
Opened 18 years ago
Closed 14 years ago
Printing a <div> with variable width prints out over whole page although page is displayed correct
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: tuxmail-spam, Unassigned)
Details
(Keywords: css2, Whiteboard: [closeme 2011-06-19])
Attachments
(1 file)
949 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Please have a look at the print preview of following HTML Code and compare it to the way Firefox displays it. It is not the same...
<html>
<head>
<style type="text/css" media="screen">
.column01 {position:absolute;
width:32.7%;
background-color:grey;
height:50px;}
.column02 {position:absolute;
width:32.7%;
left:33%;
background-color:red;
height:50px;}
.column03 {position:absolute;
width:33%;
left:66%;
background-color:green;
height:50px;}
</style>
</head>
<body>
<div id="website" style="position:relative; width:100%;">
<div id="header_row" style="position:relative; height:50px">
<div class="column01"> </div>
<div style="position:absolute; width:32%;"><h1>Hello World!</h1></div>
<div class="column02"> </div>
<div style="position:absolute; width:32%; left:33%">
<h1>Goodbye World!</h1>
</div>
<div class="column03"> </div>
<div style="position:absolute; width:33%; left:66%">
<h1>Sleeping..</h1>
</div>
</div>
</div>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. See code above.
Actual Results:
Print out of each <div style="width:33%"> is about the whole width of the document.
Expected Results:
Print out of each <div style="width:33%"> should be 33% of the width of the document.
Workaround: use fix widths (e.g. 33px) instead of variable widths (e.g. 33%).
Reporter | ||
Updated•18 years ago
|
Updated•18 years ago
|
Assignee: nobody → printing
Component: General → Printing
Product: Firefox → Core
QA Contact: general
Version: 2.0 Branch → 1.8 Branch
Updated•16 years ago
|
Assignee: printing → nobody
QA Contact: printing
Comment 1•14 years ago
|
||
reporter, does this still fail when using Firefox 5 *beta* http://www.mozilla.com/en-US/firefox/channel/ or Firefox 4?
Whiteboard: [closeme 2011-06-19]
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Works for me, Firefox 3.5, 3.6, 5.0 and 8.0a1 on Linux
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•