mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +00:00
LibWeb: Initial offset in reverse flex layout moved to opposite side
This change moves the initial offset for justify-content: center to the opposite side if the flex layout is in the reverse direction.
This commit is contained in:
parent
6ae208dbf6
commit
8200d1f68b
3 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
<!doctype html><style>
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
.flex > div {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}</style><body><div class="flex"><div style="background-color: red;">1</div><div style="background-color: blue;">2</div><div style="background-color: yellow;">3</div>
|
Loading…
Add table
Add a link
Reference in a new issue