Uh oh!
There was an error while loading. Please reload this page.
Change behaviour of overflow to be more consistent - #204
Conversation
rigdern
commented
Jul 12, 2016
@emilsjolander I will try this out tomorrow. I tried running the JavaScript tests and 7 of them failed. |
emilsjolander
commented
Jul 12, 2016
Those test failures are expected as we currently have overflow visible as
|
emilsjolander
commented
Jul 12, 2016
This change gives us a consistent way to reason about overflow and custom
|
rigdern
commented
Jul 13, 2016
@emilsjolander I tested this change in our app. Compared to d878091, several things broke:
I will investigate some more tomorrow. I have some questions for you:
|
emilsjolander
commented
Jul 13, 2016
Never mind this. Closing this PR as the issues is more complex than this fix |
rigdern
commented
Jul 13, 2016
@emilsjolander If you can give me some details on what problem you are trying to solve, I can try to provide some advice. A small example of a layout you'd like to fix would also be very helpful. What's the relationship between this and #199? |
emilsjolander
commented
Jul 13, 2016
The relationship is that 199 broke overflow. I reverted it today as there
|
rigdern
commented
Jul 13, 2016
@emilsjolander There are some cases where I believe this behavior is due to section 4.5 (implied minimum size of flex items) of the flexbox spec. Let's use this section of the spec to interpret the results of the example I shared. In the example, you'd expect When This is how the web works but we didn't quite implement this behavior in Can you provide a small example of a layout that you are trying to fix? |
emilsjolander
commented
Jul 13, 2016
In your fiddle enabling overflow just clipped the grand child for me. I'll What i'm looking to fix is not overflow itself right now but actually how This is not super urgent right. Right now i'm focusing on restructuring the Thanks for the help! On Thu, 14 Jul 2016 at 00:06, Adam Comella notifications@github.com wrote:
|
rigdern
commented
Jul 13, 2016
@emilsjolander The width of |
emilsjolander
commented
Jul 13, 2016
Hehe i believe we are running this is different browsers. I'm running it in
|
rigdern
commented
Jul 13, 2016
Oh, you are right! Safari on Mac also gives the results you are seeing. Chrome, Firefox, and Edge all behave the way I described. |
emilsjolander
commented
Jul 13, 2016
Well that explains the confusion. As I said i'll look into this once the The restructuring will cause some delay in things getting in but will speed
|
rigdern
commented
Jul 13, 2016
That sounds good to me. |
Overflow behavior was not correct with the last diff to fix measuring behavior.
This PR changes overflow to be respected for the cross axis. This is not exactly how things work on the web but given our more limited API and focus on just the flex box portion of css I think it should be alright.
The behavior after this PR is that if a node is
overflow: visible;its children will be able to overflow in the cross axis of the parent node. It does not make a lot of sense for children to overflow in the main axis as that would mean they would overlap their siblings. In the future we might implement overflow-x and overflow-y support for more control over how this behaves.@rigdern would love to get your opinion on this.