[webkit-gtk] Improving WebKit Printing

Milian Wolff milian.wolff at kdab.com
Tue Mar 20 05:20:00 PDT 2012

Hello all!

I was told that some of you are working on improving WebKit's printing 
functionality, something I'm interested in as well.

I'd like to know on what you are working, and where I could see your patches 
(webkit upstream?). Especially I am wondering how to write (and run) unit 
tests for layouting for printing.

So far, I've worked on the outdated WebKit checkout in Qt 4.8 for PhantomJS, 
but of course my intention is to upstream as much work as possible. As an 
example there is this:


The above patch(set) improves the printing of tables greatly (imo), such that 
page breaks are avoided in table rows. Furthermore, <thead> and <tfoot> 
sections are repeated on every page that the table spans on printing. As far 
as I could see so far, both is not yet fixed/improved in WebKit master and 
hence I'd like to try to upstream this patches, i.e.: a review would be 
welcome. And as I said before, I should try to write a unit test for this, but 
so far haven't found out how.

Thinking more long-term, I am interested in support for CSS 3's paged-media 
module, as I said before on webkit-devel. See http://www.w3.org/TR/css3-page/
This would allow people to design custom headers/footers for printing among 
other things, which seems to be crucial for business reports, something that 
is also a potential usecase for WebKit-GTK. So, has anyone looked into this? I 
fear that adding support for this to WebKit is a big task and I would greatly 
appreciate if someone of you with more experience could guide me.

Thanks, take care
Milian Wolff | milian.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20120320/397ae35d/attachment.bin>

More information about the webkit-gtk mailing list