mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
Although the flex algorithm as specified does say to determine the cross size of the flex container, this is not how our layout engine works. The parent formatting context is responsible for sizing its children, and since that's already happening, we can simply remove the cross sizing step from FFC.
10 lines
No EOL
135 B
HTML
10 lines
No EOL
135 B
HTML
<!DOCTYPE html><style>
|
|
* {
|
|
outline: 1px solid black;
|
|
}
|
|
body {
|
|
aspect-ratio: 1;
|
|
width: 100px;
|
|
display: flex;
|
|
}
|
|
</style>b |