mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
LibWeb: Treat non-finite containing block width as zero for percentages
Fixes an assertion when loading https://bun.sh/
This commit is contained in:
parent
c0a5787395
commit
3f022f4040
3 changed files with 18 additions and 1 deletions
|
@ -0,0 +1,8 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x33.46875 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 200x17.46875 children: not-inline
|
||||
BlockContainer <div> at (8,8) content-size 200x17.46875 children: inline
|
||||
line 0 width: 36.84375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [8,8 36.84375x17.46875]
|
||||
"hello"
|
||||
TextNode <#text>
|
|
@ -0,0 +1,9 @@
|
|||
<!doctype html><style>
|
||||
body {
|
||||
width: max-content;
|
||||
}
|
||||
div {
|
||||
width: 200px;
|
||||
min-width: 100%;
|
||||
}
|
||||
</style><body><div>hello
|
Loading…
Add table
Add a link
Reference in a new issue