-
-
Notifications
You must be signed in to change notification settings - Fork 713
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
min-height not applied of flex container #2374
Comments
I've also tried using CSS Grid to accomplish the same thing, but in Chrome there is whitespace between the main and footer blocks. In WeasyPrint all three tags appear on different pages. <html>
<head>
<style>
body {
height: 297mm;
display: grid;
grid-template-areas:
"header"
"main"
"footer";
grid-template-rows: auto 1fr auto;
}
header {
grid-area: header;
}
main {
grid-area: main;
}
footer {
grid-area: footer;
}
</style>
</head>
<body>
<header>Header</header>
<main>Main</main>
<footer>Footer</footer>
</body>
</html> |
Thanks for the report! We’re currently rewriting the flex layout (perfect timing), let’s put this issue in #2362. |
The problem is actually
It works if you remove the default page margins and the body margins. @page {
margin: 0;
}
body {
margin: 0;
} |
Bug is closed and tested in the flex branch, see #2362. |
Thank you! |
Hi,
I'm trying to get WeasyPrint to render a block at the bottom of a page.
Initially, I used this but found it too limiting:
When rendering the HTML below in Chrome, there is whitespace between the main section and the footer.
When using WeasyPrint, they are touching each other as if flex-grow doesn’t work.
In the HTML below the footer appears on the next page when rendering using WeasyPrint:
The text was updated successfully, but these errors were encountered: