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: Resolve block max-width percentage against containing block
- Loading branch information
1 parent
8df3e6b
commit 2285dfb
Showing
5 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
Tests/LibWeb/Layout/expected/block-and-inline/max-width-percentage-containing-block.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,14 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (1,1) content-size 798x37.46875 [BFC] children: not-inline | ||
BlockContainer <body> at (10,10) content-size 780x19.46875 children: not-inline | ||
BlockContainer <span.text> at (11,11) content-size 66.671875x17.46875 children: inline | ||
line 0 width: 66.671875, height: 17.46875, bottom: 17.46875, baseline: 13.53125 | ||
frag 0 from TextNode start: 0, length: 7, rect: [11,11 66.671875x17.46875] | ||
"Trimmed" | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x39.46875] | ||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x21.46875] | ||
PaintableWithLines (BlockContainer<SPAN>.text) [10,10 68.671875x19.46875] | ||
TextPaintable (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
11 changes: 11 additions & 0 deletions
11
Tests/LibWeb/Layout/input/block-and-inline/max-width-percentage-containing-block.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,11 @@ | ||
<!DOCTYPE html><style> | ||
* { | ||
border: 1px solid black; | ||
} | ||
|
||
.text { | ||
width: min-content; | ||
max-width: 50%; | ||
display: block; | ||
} | ||
</style><body><span class="text">Trimmed |
15 changes: 0 additions & 15 deletions
15
Tests/LibWeb/Layout/input/grid/item-min-max-percentage-width.html
This file was deleted.
Oops, something went wrong.
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