mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Don't add extra gap when placing flex items in reverse order
This commit is contained in:
parent
ac9670fb55
commit
50445dc9ef
Notes:
github-actions[bot]
2025-01-17 09:11:34 +00:00
Author: https://github.com/aplefull 🔰
Commit: 50445dc9ef
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3273
3 changed files with 95 additions and 5 deletions
37
Tests/LibWeb/Layout/input/flex-justify-end-gap.html
Normal file
37
Tests/LibWeb/Layout/input/flex-justify-end-gap.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
<div class="container col">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="container row">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
gap: 50px;
|
||||
border: 2px solid black;
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: crimson;
|
||||
}
|
||||
|
||||
.col {
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
height: 400px;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.row {
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
width: 400px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue