Incompatibilities between float and column in print mode




Printing: Output
11 years ago
7 years ago


(Reporter: David Latapie, Unassigned)


1.8 Branch
Mac OS X

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [closeme 2011-03-15])


(3 attachments)



11 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr; rv: Gecko/20070809 Camino/1.5.1 (MultiLang)
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr; rv: Gecko/20070809 Camino/1.5.1 (MultiLang)

In order to mimic publishing software, I want to create a PDF of a file where the text fits on two columns. The said text also contains pictures and I want the text to wrap around the picture, so I use float.

It is all well and good with "media=screen"; the text wraps around the picture and the combination of both is splitted in two columns. But with "media=print", the picture doesn't float. See attached picture for an example. I think the probleme comes from the fact that the picture is two big to fit in one column in print mode and the second column doesn't change accordingly.

Reproducible: Always

Steps to Reproduce:
1. write a long text
2. use this rule in the media:print part of your CSS: 			column-count:2;-moz-column-count:2
3. choooe a big enough picture (like 400 px)
4. set it to float:left
5. print as PDF (to save ink and paper) with the A4 format (or similar size)
Actual Results:  
The picture in the first column is drawn upon the second column

Expected Results:  
The second column should wrap around the picture, even though the picture is in the first column

Comment 1

11 years ago
Created attachment 285360 [details]
PDF of the result: a picture overlaps the second column

Comment 2

11 years ago
Created attachment 285361 [details]
Source HTML file

A possible workaround could be that Gecko resizes the picture — although I believe this would usually be unwanted. Notice the previous (PDFà attachmennt is compressed to be less than 300 kb. If opens perfectly with OS X Tiger, but YMMV with other OSes.

Comment 3

11 years ago
Created attachment 285363 [details]
HTML + sample picture in a zip
Component: General → Printing: Output
Product: Firefox → Core
QA Contact: general → printing
Version: unspecified → 1.8 Branch

Comment 4

7 years ago
do you see this issue still with version 3.6 or 4.0 beta?
Whiteboard: [closeme 2011-03-15]
No response to needed information. -> incomplete report
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.