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 in1d76126abe
The third one seems to have been introduced by this regression, as it was seemingly copied from compute_width_for_floating_box in7f9ede07bc
This commit is contained in:
parent
0ec522ab54
commit
f4446cdf8c
7 changed files with 56 additions and 6 deletions
|
@ -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">
|
|
@ -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"/>
|
|
@ -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">
|
Loading…
Add table
Add a link
Reference in a new issue