1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 20:15:06 +00:00
serenity/Tests/LibWeb/Layout/input/flex/inline-flex-with-main-axis-margin-on-flex-container.html
Andreas Kling e99a6fede4 LibWeb: Allow IFC to size inline-flex boxes midway through flex layout
The part in FFC where we ask the parent formatting context to size the
flex container midway through layout is really weird, but let's at least
be consistently weird for BFC and IFC. Since IFC always works within its
parent BFC, it can simply forward these requests to the BFC.

This fixes an issue where inline-flex containers incorrectly had main
axis margins subtracted from their content size.
2023-06-19 18:51:00 +02:00

17 lines
No EOL
321 B
HTML

<!DOCTYPE html><style>
* {
border: 1px solid black;
}
html {
background: white;
width: 500px;
}
body {
display: inline-flex;
margin-right: 100px;
background: pink;
}
div {
background: orange;
}
</style><body><div>Immobilie inserieren