-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
Grid support enhancements #2145
Comments
Great to see this list! One clarification to see if this relates to a problem I've noticed:
Does this mean that, for example, rows within a (My usual process is to get something working in Chrome, and then compare to the output of Weasyprint; Chrome is more forgiving but I want to make sure I can point to specific issues where possible). Thanks for all your work on this! |
No, it means for example that a grid can’t find the maximum width of its content. Here’s an example: <div style="float: left">
<div style="display: grid; grid: 1fr / 1fr 1fr; border: 1px solid red">
<div>abc def</div>
<div>abc def</div>
</div>
</div> In this example, we have one row with two columns with "abc def", so its maximum width is the width of "abc defabc def". WeasyPrint can’t find this width yet, it assumes that it is the width of "abc def", just as if it was a block containing other blocks.
Yes, you can open another issue, and give us an example so that we can reproduce the problem. |
This issue is for grouping grid features requests and bugs.
If you’d like to have a new feature regarding grid properties or encounter an issue related to grid, you can check here if an issue isn’t already opened.
If not, please open an issue and we’ll link it there :)
display: inline-grid
grid-auto-flow: column
− Support grid-auto-flow: column #2142repeat(auto-fill, *)
andrepeat(auto-fit, *)
auto
margins for grid itemsspan
with line namesspan
for flexible trackssafe
andunsafe
alignmentsmin-width
,max-width
,min-height
,max-height
on grid itemsmin-content
andmax-content
casesbreak-inside: avoid
for grid items – Allow fragmentation in grid rows #2397break-inside: avoid
for grid containersbreak-before
andbreak-after
for grid itemsThe text was updated successfully, but these errors were encountered: