1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

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.
This commit is contained in:
Andreas Kling 2023-03-19 20:35:42 +01:00
parent 00999a245c
commit a6d1307aa4
3 changed files with 25 additions and 1 deletions

View file

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