-
Notifications
You must be signed in to change notification settings - Fork 15k
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
[print style]css style page-break-after not working #8160
Comments
What is the behavior in chrome with your styles and HTML? I know from experience that making |
@MarshallOfSound maybe the same to the electron, i had searched many methods to solve this question,but all of it didn't work. google-chrome-printing-page-breaks maybe it's the chrome's bug, it really bugs me |
It's not a Chrome bug, my research a looonnggg time ago when I had this issue led me to believe that this is caused by the spec not required the CSS props be applied to all elements. https://www.w3.org/TR/CSS21/page.html#page-break-props There is a working draft of a new spec that applies to the prop to all elements. https://drafts.csswg.org/css-page-3/#page-break-inside I would read through those specs to better understand what elements it can be applied to. There is also MDN as a good reference. https://developer.mozilla.org/en/docs/Web/CSS/page-break-inside But if Chrome responds the same was as Electron then we can't do much about it. Especially in this case where they are probably just strictly implementing the spec (so it's not technically a bug) |
OK, i will look,thx for regurds,closed the issue |
@topul I know this has been closed now for several years, but were you ever to figure out the issue? I'm also having an issue trying to get |
@alxmrtnz having the same problem, cant find the solution |
I found that if working with flexbox there is an issue in Chromium if trying to implement |
Expected behavior
page break normally when print
Actual behavior
css style page-break-after not working
How to reproduce
I have set all of this:
but it still does not work.
The text was updated successfully, but these errors were encountered: