mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 11:45:08 +00:00

Using avilable space directly while resolving table container width allows to avoid assigning it to table wrapper box content width which sometimes involves infinite (saturated) values. Also this allows to get rid of set_max_content_width() which is a hack that allows to bypass set_content_width() to assign infinite (saturated) width to a box. Closes https://github.com/SerenityOS/serenity/issues/19521
10 lines
No EOL
171 B
HTML
10 lines
No EOL
171 B
HTML
<!DOCTYPE html><html><head><style>
|
|
#box1 {
|
|
display: table;
|
|
}
|
|
|
|
#box2 {
|
|
display: table;
|
|
padding: 100%;
|
|
}
|
|
</style></head><body><div id="box1"><div><div id="box2"> |