mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Respect margin boxes when center-aligning flex items
This commit is contained in:
parent
495b3169e0
commit
ce93088a81
Notes:
github-actions[bot]
2025-03-05 17:08:08 +00:00
Author: https://github.com/Schottkyc137 🔰
Commit: ce93088a81
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3804
3 changed files with 31 additions and 1 deletions
17
Tests/LibWeb/Layout/input/flex/align-center-margin.html
Normal file
17
Tests/LibWeb/Layout/input/flex/align-center-margin.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!doctype html><style>
|
||||
body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: red;
|
||||
}
|
||||
span {
|
||||
margin-top: 100px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: blue;
|
||||
}
|
||||
</style><body><div></div><span></span>
|
Loading…
Add table
Add a link
Reference in a new issue