The page-break-after CSS tag is listed as partially supported and “in development”. We would really appreciate support for the “avoid” value so that we could prevent the document author’s signature to spill over to the next page alone. (Our customer would prefer to pull a line or two of the last paragraph to the next page as well.)
How is this functionality progressing and when could we expect it in PD4ML?
The problem is that the document above the signature is written by the user of the application. I have no control over its content; the last element could be a single-sentence paragraph, a long paragraph, a table, an image … Your solution would only be useful if I would encapsulate the last element of the document and the signature image within a single div and style it with page-break-inside:avoid. But I cannot do that because that would also prevent page breaks within the last, possibly long, paragraph of the document.
Now we’re trying to workaround this issue (temporarily) by allowing the signature to fall outside of the regular printable area (possibly reaching into the document footer). But PD4ml does not seem to allow that: even if we put the image in a smaller div with overflow:hidden, thus effectively cropping the bottom of the signature image (which is usually blank anyway), as soon as a part (albeit cropped) of the image would reach outside of the printable area, it disappears entirely. (A simple test for this behaviour is positioning the image with style=”position:absolute; bottom: -1cm;”.)
While browsers (tested with Chrome and Firefox) have problems with page-break-after:avoid as well, they at least handle this situation correctly. Could you comment on that?
Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.