-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Fix several problems related to flex-direction: column #2231
Conversation
If this is okay for the moment, I would like to do a separate PR to refactor |
I fixed #1171 here too (it was not the same issue). I'll stop there for now :) |
Thanks a lot for this PR! ❤️ I’ll change some little things (mainly remove the debug messages, as explained in #2220) and merge this PR soon! |
The level been added to avoid debug messages that were not used before. This will be handled differently in a future commit.
Even if it could be useful for print()-based debugging sessions, it gives different results depending on the id field presence, and is actually useless when using a debugger and unrelated to Kozea#2231. Let’s use a debugger!
See Kozea#2231 and Kozea#2220.
Thank you! I was going to do that myself eventually but I was on vacation last week. I'll make sure to keep them out of future PRs (perhaps in a separate local branch) |
Fixes: #2222 with the following crucial fixes:
block_level_layout_switch
, which in turn calls back intoflex_layout
, which clobbers anywidth
orheight
attributes (which would represent the used main size of the item) in the call toresolve_percentages(parent_box, containing_box)
in step 3. ce6253fAlso fixes: #1171 with the following fix:
Adds a huge amount of commenting and tracing which should aid in the refactoring of the flexbox code.
Note however that said code is definitely not correct. Most importantly it is not clear (even in the spec) where the inner and outer main sizes are used for flex items, and the code also doesn't do this consistently, so there will be some issues where flex items have definite size or definite flex-basis. We can add more tests... the code coverage is not good!