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

LibWeb: Resolve padding against 0 and not inf for indefinite width more

In particular, in BFC:
- Non-floating, non-replaced elements
- Floating, non-replaced elements
- Floating, replaced elements

The first two regressed in 1d76126abe

The third one seems to have been introduced by this regression, as it
was seemingly copied from compute_width_for_floating_box in
7f9ede07bc
This commit is contained in:
Luke Wilde 2023-06-20 22:21:33 +01:00 committed by Andreas Kling
parent 0ec522ab54
commit f4446cdf8c
7 changed files with 56 additions and 6 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><html><head><style>
#box1 {
display: flex;
}
#box2 {
display: flex;
padding: 100%;
float: left;
}
</style></head><body><div id="box1"><div><div id="box2">

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><html><head><style>
#box1 {
display: flex;
}
#box2 {
display: flex;
padding: 100%;
float: left;
}
</style></head><body><div id="box1"><div><img id="box2"/>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html><html><head><style>
#box1 {
display: flex;
}
#box2 {
display: flex;
padding: 100%;
}
</style></head><body><div id="box1"><div><div id="box2">