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: Implement more of "Resolve Intrinsic Track Sizes" in GFC
Implements some parts of "Resolve Intrinsic Track Sizes" algorithm from spec to make it more spec compliant.
- Loading branch information
1 parent
1ada6a4
commit 14cb006
Showing
3 changed files
with
104 additions
and
48 deletions.
There are no files selected for viewing
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,14 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline | ||
BlockContainer <body> at (8,8) content-size 784x17.46875 children: not-inline | ||
Box <div#grid> at (8,8) content-size 784x17.46875 [GFC] children: not-inline | ||
BlockContainer <div#title> at (8,8) content-size 88.171875x17.46875 [BFC] children: inline | ||
line 0 width: 88.171875, height: 17.46875, bottom: 17.46875, baseline: 13.53125 | ||
frag 0 from TextNode start: 0, length: 10, rect: [8,8 88.171875x17.46875] | ||
"Game Title" | ||
TextNode <#text> | ||
BlockContainer <div#board> at (96.171875,8) content-size 695.828125x17.46875 [BFC] children: inline | ||
line 0 width: 45.734375, height: 17.46875, bottom: 17.46875, baseline: 13.53125 | ||
frag 0 from TextNode start: 0, length: 5, rect: [96.171875,8 45.734375x17.46875] | ||
"Board" | ||
TextNode <#text> |
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,23 @@ | ||
<style> | ||
#grid { | ||
display: grid; | ||
grid-template-columns: | ||
auto | ||
1fr; | ||
grid-template-rows: | ||
auto | ||
auto; | ||
} | ||
|
||
#title { | ||
grid-column: 1; | ||
grid-row: 1; | ||
background-color: lightblue; | ||
} | ||
|
||
#board { | ||
grid-column: 2; | ||
grid-row: 1; | ||
background-color: lightgreen; | ||
} | ||
</style><div id="grid"><div id="title">Game Title</div><div id="board">Board</div></div> |
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