mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 20:15:06 +00:00

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.
17 lines
No EOL
321 B
HTML
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 |