You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a parent has display:flex, a child with display:inline-block gets a base-width that far overflows both the parent and the current page. This behavior was introduced in 54 and still happens with 55. 53.4 is working correctly.
Oh, in case it matters, this is all on Windows.
I made a minimal example:
<!DOCTYPE html><htmllang="en"><head><metahttp-equiv="Content-Type" content="text/html; charset=utf-8"/><title>empty</title><style>
.testbox {
display: flex;
background-color:#eee;
}
.testboxp {
display: inline-block;
}
</style></head><body><divclass="testbox"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.
</p></div></body></html>
This results in
If I add a percentage width, it takes some other, unknown width as basis (width: 50%):
Changing it to display:block fixes everything:
The text was updated successfully, but these errors were encountered:
When a parent has
display:flex
, a child withdisplay:inline-block
gets a base-width that far overflows both the parent and the current page. This behavior was introduced in 54 and still happens with 55. 53.4 is working correctly.Oh, in case it matters, this is all on Windows.
I made a minimal example:
This results in
If I add a percentage width, it takes some other, unknown width as basis (
width: 50%
):Changing it to
display:block
fixes everything:The text was updated successfully, but these errors were encountered: