forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Don't treat auto insets as definite for child of abspos element
This fixes an issue where the welcome screen wasn't showing up the first time you visit https://puter.com/ :^) (cherry picked from commit a74954e1453f742f18024840f7de9b18d2c791a2)
- Loading branch information
1 parent
50b7fff
commit b8f5163
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
Tests/LibWeb/Layout/expected/child-of-abspos-percentage-height.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x0 [BFC] children: not-inline | ||
BlockContainer <body> at (8,8) content-size 36.84375x17 positioned [BFC] children: not-inline | ||
BlockContainer <div> at (8,8) content-size 36.84375x17 children: inline | ||
frag 0 from TextNode start: 0, length: 5, rect: [8,8 36.84375x17] baseline: 13.296875 | ||
"hello" | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x0] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 36.84375x17] | ||
PaintableWithLines (BlockContainer<DIV>) [8,8 36.84375x17] | ||
TextPaintable (TextNode<#text>) |
5 changes: 5 additions & 0 deletions
5
Tests/LibWeb/Layout/input/child-of-abspos-percentage-height.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!doctype html><style> | ||
* { outline: 1px solid black; } | ||
body { position: absolute; } | ||
div { height: 100%; } | ||
</style><body><div>hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters