CSS: display flex div property align-items: center moves content outside of display: flex div #3312
Labels
bug
Something isn't working
has repro
We have a way to reproduce this bug.
layout
reduction of web content
Issue has a simplified reduction based on real-world web content.
Summary
On my personal website, I have a div of sorts containing the tab switcher for a list of apps, in ladybird, that type switcher appears outside the boundaries of it's container div, made visible in the provided screenshots by the rose coloured rectangle, I have pinpointed the issue to be with the css property allign-items: center, or rather simply items-center for those that use tailwind css, for my website I could simply remove the class, as it is supposed to not do anything really, but that's beside the point, ps. the rose coloured rectangle is only present in the screenshots strictly for your convenience, it is NOT, however present on the actual site which I have linked multiple times in this report
Operating system
Linux
Steps to reproduce
Expected behavior
Expected behaviour is to have the content centered on the axis perpendicular to the container direction (vertical in the case of a row, horizontal in the case of a column)
Actual behavior
Actual behaviour is that it sets the content off to the side, basically outside of the normal container boundaries on the axis perpendicular to the container direction (vertical in the case of a row, horizontal in the case of a column)
URL for a reduced test case
https://maskedredstonerproz.vercel.app
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
Screenshots or screen recordings
what it looks like:
what it should look like:
Build flags or config settings
No response
Contribute a patch?
The text was updated successfully, but these errors were encountered: