Version: (using KDE KDE 3.1.4) Installed from: Debian testing/unstable Packages CSS properties page-break-after (-before, -inside) should insert page break when printing html. This works with mozilla/opera, but doesn't seem to be supported by khtml. Simple example page: http://www.chamisplace.com/dl/tips/052898I/pgbreak.htm
printing isn't khtml's biggest strength ;(
Note that the example page lacks a semicolon at the end of the CSS line, which might make it invalid. KHTML doesn't support this even when it is valid, though. :(
I have the same issue, does anyone know if this will be fixed in 3.2?
CVS commit by carewolf: WebCore/125-merge of page-break-before, -after and -inside attributes. CCMAIL: 68930-done@bugs.kde.org M +18 -8 ChangeLog 1.291 M +11 -3 khtmlview.cpp 1.666 M +48 -2 css/cssstyleselector.cpp 1.317 M +31 -1 rendering/render_block.cpp 1.43 M +2 -0 rendering/render_block.h 1.18 M +25 -0 rendering/render_canvas.cpp 1.153 M +6 -8 rendering/render_canvas.h 1.56 M +1 -1 rendering/render_list.cpp 1.96 M +11 -3 rendering/render_style.cpp 1.72 M +35 -4 rendering/render_style.h 1.105 M +2 -2 rendering/render_text.cpp 1.251
I'm afraid this bug should be reopened. Please check out the test file I'm about to attach ; here konqueror fails to take into account "page-break-inside: avoid", both when dealing with <div>s and <p>s ; I can also provide further tests that show the same happens with <dd>s and <dt>s. I'm using a Mandrakelinux Cooker version of konqueror (currently 3.3.2 + some patches from the 3.4 branch)
Created an attachment (id=9449) [details] HTML test page for page-break-inside, <div>s and <p>s
Yes, only page-break-before was implemented by the safari merge.
I was trying to use the page-break-before on a br tag, but that does not work on 3.4.0. Also, using it on a singleton p tag does not work (but I am not really sure that is a legal tag...) Actually, I was trying page-break-after (which seemed more natural to me) but found this bug and saw that I can use page-break-before to get my page working properly for now.
FWIW, page-break-before/after seem broken in CVS where it previously worked
My previous comment was wrong. Both page-break-before and page-break-after was implemented. Seems there have been regressions. Test case?
Created an attachment (id=11230) [details] br tag with page-break-after
The bug is the same as #57803 *** This bug has been marked as a duplicate of 57803 ***
The test-case is wrong. Page-break-after only applies to block-level elements, <br> is inline.
Created an attachment (id=12243) [details] page-break-before and page-break-after css page New test with block-level tag instead of inline tag.
You need to log in before you can comment on or make changes to this bug.