-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
border-box
-sized flex container with flex-direction "column" grows taller than it should
#2053
Comments
I happened to find another example that seems to be the same issue with
|
Is there any workaround for this at the moment? |
I don’t think so. Flex layout has to be fully rewritten, but that’s quite a lot of work… |
What would you suggest for now as an alternative to create grids? Should I just use good old tables? |
Grid layout, of course! |
Right, these are symptoms of what I mention in #2231 as "the code is definitely not correct" - there is considerable confusion between inner and outer sizes in the flex code. So if you use Since I'm in the flex code already ... I may try to sort these out as they seem pretty straightforward, it's a "simple matter of box models" (lol) |
In the following example, the flex container is rendered taller than wider by WeasyPrint, whereas browsers show it as a perfect square (per
width: 20rem
,height: 20rem
andbox-sizing: border-box
).It appears to be related to the way vertical padding is factored into the box's dimensions. This does not happen with
flex-direction: row
, where the dimensions are calculated correctly and the box ends up being square.The text was updated successfully, but these errors were encountered: