mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 12:25:07 +00:00

This change moves the initial offset for justify-content: center to the opposite side if the flex layout is in the reverse direction.
11 lines
No EOL
366 B
HTML
11 lines
No EOL
366 B
HTML
<!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> |