forked from LadybirdBrowser/ladybird
-
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: Handle inline-start and inline-end as float values
Should resolve LadybirdBrowser#449 for LTR languages at least
- Loading branch information
1 parent
1103908
commit d427344
Showing
5 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
Tests/LibWeb/Layout/expected/block-and-inline/float-logical.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,17 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x60 [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline | ||
TextNode <#text> | ||
BlockContainer <body> at (8,8) content-size 784x0 children: inline | ||
TextNode <#text> | ||
BlockContainer <div#b> at (9,9) content-size 50x50 floating [BFC] children: not-inline | ||
TextNode <#text> | ||
BlockContainer <div#c> at (741,9) content-size 50x50 floating [BFC] children: not-inline | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x60] | ||
PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0] | ||
PaintableWithLines (BlockContainer<DIV>#b) [8,8 52x52] | ||
PaintableWithLines (BlockContainer<DIV>#c) [740,8 52x52] |
23 changes: 23 additions & 0 deletions
23
Tests/LibWeb/Layout/input/block-and-inline/float-logical.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,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
#b { | ||
border: 1px solid red; | ||
width: 50px; | ||
height: 50px; | ||
float: inline-start; | ||
} | ||
#c { | ||
border: 1px solid blue; | ||
width: 50px; | ||
height: 50px; | ||
float: inline-end; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id=b></div> | ||
<div id=c></div> | ||
</body> | ||
</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
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
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