Non-spec behavior using alignItems: center #1704
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report
Issues and Steps to Reproduce
Here is a playground in which we can see that setting alignItems: 'center' actually allows the content to grow bigger than it's container.
Broken playground
Expected Behavior
When setting alignItems: center, content should stay within bounds.
We made a reproduction in codepen.
ℹ️ Note: We are not sure using flexBasis is the best way to emulate a component from react-native but it seems to be okay.
⚠️ Note 2: Fun fact, when using React Native and Old yoga errata settings (classic), this bug is harder to trigger as it needs an extra to happen, see this playground. I believe this has allowed this bug to be uncommon for most yoga users (that would be using react native). If more users start using a stricter errata, it will be a much bigger issue I believe.
Actual Behavior
The content overflows
Link to Code
See playground
Let me know if there is anything else that would be needed to get this fixed. Thanks 🫡