mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +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:
parent
00999a245c
commit
a6d1307aa4
3 changed files with 25 additions and 1 deletions
|
@ -0,0 +1,9 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x45.835937 children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x27.835937 children: inline
|
||||
line 0 width: 202, height: 27.835937, bottom: 27.835937, baseline: 25.835937
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [11,11 200x25.835937]
|
||||
BlockContainer <input> at (11,11) content-size 200x25.835937 inline-block children: not-inline
|
||||
BlockContainer <#shadow-root> at (11,11) content-size 0x0 children: not-inline
|
||||
BlockContainer <div> at (14,13) content-size 194x21.835937 children: inline
|
||||
TextNode <#text>
|
Loading…
Add table
Add a link
Reference in a new issue