ladybird/Tests/LibWeb/Layout/input/input-element-with-display-inline.html
Andreas Kling a6d1307aa4 LibWeb: Don't crash on HTML input element with display: inline
This would previously assert in InlineFormattingContext because we had
an outwardly inline box that wasn't inwardly flow.

Fix this by converting text-based input boxes to inline-blocks. This is
an ad-hoc solution, and there might be a much better way to solve it.
2023-03-20 17:57:58 +01:00

10 lines
179 B
HTML

<!DOCTYPE html><html><head><style>
* {
border: 1px solid black;
font: 20px 'SerenitySans';
}
input {
display: inline;
width: 200px;
}
</style></head><body><input/>