1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

LibWeb: Use fit-content width if button's computed width is "auto"

Implements following line from the spec:
"If the computed value of 'inline-size' is 'auto', then the used value
is the fit-content inline size."
This commit is contained in:
Aliaksandr Kalenik 2023-09-09 17:13:41 +02:00 committed by Andreas Kling
parent 7eee3f6952
commit 63939445b1
5 changed files with 54 additions and 1 deletions

View file

@ -0,0 +1,9 @@
<!DOCTYPE html><style>
.btn {
display: block;
}
.fixed-width {
width: 200px;
}
</style><button class="btn fixed-width">200px width</button><button class="btn">auto width should behave as fit-content</button>