forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Treat non-finite containing block width as zero for percentages
- Loading branch information
1 parent
c0a5787
commit 80ff6a6
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...xpected/block-and-inline/percentage-min-width-with-max-content-containing-block-width.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,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> |
9 changes: 9 additions & 0 deletions
9
.../input/block-and-inline/percentage-min-width-with-max-content-containing-block-width.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,9 @@ | ||
<!doctype html><style> | ||
body { | ||
width: max-content; | ||
} | ||
div { | ||
width: 200px; | ||
min-width: 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