serenity/Tests/LibWeb/Layout/input/block-and-inline/button-width.html
Aliaksandr Kalenik 63939445b1 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."
2023-09-12 17:26:30 +02:00

9 lines
No EOL
240 B
HTML

<!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>