mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
LibWeb: Clamp justification space between flex items to 0
Before this change, it was possible for flex lines with negative remaining space (due to overflowing items) to put a negative amount of space between items for some values of `justify-content`. This makes https://polar.sh/SerenityOS look much better :^)
This commit is contained in:
parent
e668cdcf22
commit
1583e6ce07
3 changed files with 51 additions and 3 deletions
|
@ -0,0 +1,29 @@
|
|||
<!doctype html><style type="text/css">
|
||||
html { background: white; }
|
||||
* {
|
||||
outline: 1px solid black;
|
||||
}
|
||||
body {
|
||||
background: pink;
|
||||
display: flex;
|
||||
width: 400px;
|
||||
height: 100px;
|
||||
}
|
||||
.outer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
background: magenta;
|
||||
}
|
||||
.upper {
|
||||
background: orange;
|
||||
}
|
||||
.lower {
|
||||
background: yellow;
|
||||
}
|
||||
.spacer {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background: green;
|
||||
}
|
||||
</style><body><div class="outer"><div class="upper"><div class="spacer"></div></div><div class="lower">whf
|
Loading…
Add table
Add a link
Reference in a new issue