1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:57:35 +00:00

LibWeb: Use max content contribution in flex_fraction in GFC

As spec comment in the code says we should use item’s max-content
contribution to calculate flex fraction.

Likely, it was calculate_max_content_size() because we didn't have
calculate_max_content_contribution() when this function was implemented
initially.
This commit is contained in:
Aliaksandr Kalenik 2023-10-23 23:15:32 +02:00 committed by Andreas Kling
parent 802b58d7e1
commit 4dab17427f
3 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<!DOCTYPE html><style type="text/css">
.w-layout-grid {
grid-template-rows: auto auto;
grid-template-columns: 1fr 1fr;
grid-auto-columns: 1fr;
display: grid;
}
.button {
padding: 50px;
color: rgb(255, 255, 255);
background-color: rgb(56, 152, 236);
}
.cta-banner {
display: flex;
}
</style><div class="cta-banner"><div class="w-layout-grid"><div class="button">Sign up for free</div></div></div>