Flex containers not positioned correctly when their margin-left/right is set to auto
#2054
Labels
bug
Existing features not working as expected
auto
#2054
In the following example, a flex container (the
.inner
div) has itsmargin-left
andmargin-right
properties set toauto
, which should cause it to be centered in its parent div. Instead, it is positioned at the left edge of the.outer
div.WeasyPrint does this correctly when the inner div gets changed to
display: block
.(This may or may not be related to #1171, although that issues talks about nested flex containers, whereas in my case the outer container is a normal block element.)
The text was updated successfully, but these errors were encountered: