On 09/21/2012 02:53 PM, Poly Glot wrote:
Question Two: How are we supposed to be able to fix/avoid rendering problems
like this? i.e. how can we debug what

Use print preview? Writing simplified testcases (where you cut out all the
irrelevant things and strip the page down to just the bug) would help, too.

Unless you're using media-specific style sheets, the computed style will be
identical, so a debugger probably won't help much. The problem is likely to
be that layout in the print codepath is different from on screen, in order
to handle pagination, and in many cases there are things we aren't able to
paginate well. (Notice that pages aren't simply graphically sliced when they
reach the bottom of the page; content has to be shifted so that it doesn't
fall across a page break.)

I don't know what specific problems you're concerned about, but you're using
a lot of unnecessary absolute positioning. Chances are, that's what's messing
up the layout. Simplify your code so you're not absposing things across pages,
and that should hopefully fix most of the problems.

(We can't print things that are absolutely-positioned across pages very well
because it involves, in the case of top-positioned things, a coordinate system
that spans pages (which we haven't implemented yet), and in the case of bottom-
positioned things, it requires that plus some kind of reverse pagination.)

~fantasai
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to