mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02: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:
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a6d1307aa4
@@ -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/>
|
||||
Reference in New Issue
Block a user