-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle the page break with a top margin on the next page? #144
Comments
|
Thank you @DanielRuf for your fast answer! My main question is about the proper way to handle the page break with a top margin on the next page, when @page margins are set to 0. Do you think of any way to do this? Here's the best I can think of for now: pug
scss
output |
Are you sure of this? Because the documentation says: Applies to: all elements And I can make it work with |
This is described / mentioned in the caniuse tables. w3 does not cover vendor specific differences / bugs. Not sure, I did not yet try it. |
Doesn't Chrome support it now without the vendor prefix? |
For debugging purposes the headless mode of puppeteer can be disabled and prevented that the insfance is closed to see what's happening. |
I've edited the title to reflect the real issue here. I have tried to make it work with a Is there another way to do it with Relaxed? |
For those who are interested: my solution above using a thead as serious limitations when you fill tbody cell with some content. The page-break simply doesn't apply sometimes or apply but the margin is not keeped. Well, is there any solution to have keep a margin after a page break? |
I have posted a question on stackoverflow : https://stackoverflow.com/questions/59348619/pdf-generation-or-printable-html-how-to-create-a-top-margin-after-an-auto-page |
@DanielRuf I have tried the headless puppeteer but it is not really helpful. |
I think you meant headful. We already use puppeteer.
|
Oh, yes sorry 👍
|
As you can see there was no further progress. |
Hi,
I'm struggling with something which appear to be simple but which is not.
Objective
I want to create a A4 document where:
Issue
The property
-webkit-box-decoration-break: clone
don't work (but should)Expected
https://www.w3.org/TR/css-break-3/#valdef-box-decoration-break-clone
(the right part)
So... is there anyway to fix this -or- to achieve the page-break WITH a padding/border applied?
Thank you so much for your insights
The text was updated successfully, but these errors were encountered: