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: Support
justify-content: space-evenly
in flex layouts
Aligns the cookie banner correctly on https://twitter.com/ :^)
- Loading branch information
1 parent
1cb23d4
commit fb2f51a
Showing
7 changed files
with
803 additions
and
87 deletions.
There are no files selected for viewing
204 changes: 118 additions & 86 deletions
204
Tests/LibWeb/Layout/expected/flex/abspos-flex-child-static-position-with-justify-content.txt
Large diffs are not rendered by default.
Oops, something went wrong.
581 changes: 581 additions & 0 deletions
581
Tests/LibWeb/Layout/expected/flex/justify-content-1.txt
Large diffs are not rendered by default.
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
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,71 @@ | ||
<!DOCTYPE html><style> | ||
* { | ||
border: 1px solid black !important; | ||
} | ||
.outer { | ||
display: flex; | ||
background: wheat; | ||
} | ||
.outer.row { | ||
width: 300px; | ||
height: 60px; | ||
} | ||
.outer.column { | ||
width: 60px; | ||
height: 300px; | ||
} | ||
.outer > div { | ||
width: 50px; | ||
height: 50px; | ||
background: orange; | ||
} | ||
.flex-start { justify-content: flex-start; } | ||
.flex-end { justify-content: flex-end; } | ||
.start { justify-content: start; } | ||
.end { justify-content: end; } | ||
.center { justify-content: center; } | ||
.space-around { justify-content: space-around; } | ||
.space-between { justify-content: space-between; } | ||
.space-evenly { justify-content: space-evenly; } | ||
|
||
.row { flex-direction: row; } | ||
.row.reverse { flex-direction: row-reverse; } | ||
.column { flex-direction: column; } | ||
.column.reverse { flex-direction: column-reverse; } | ||
.reverse > div { | ||
background: magenta; | ||
} | ||
</style> | ||
<body> | ||
<div class="row outer start"><div>start</div><div>a</div><div>b</div></div> | ||
<div class="row outer flex-start"><div>flex-start</div><div>a</div><div>b</div></div> | ||
<div class="row outer end"><div>end</div><div>a</div><div>b</div></div> | ||
<div class="row outer flex-end"><div>flex-end</div><div>a</div><div>b</div></div> | ||
<div class="row outer center"><div>center</div><div>a</div><div>b</div></div> | ||
<div class="row outer space-around"><div>space-around</div><div>a</div><div>b</div></div> | ||
<div class="row outer space-between"><div>space-between</div><div>a</div><div>b</div></div> | ||
<div class="row outer space-evenly"><div>space-evenly</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer start"><div>start</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer flex-start"><div>flex-start</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer end"><div>end</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer flex-end"><div>flex-end</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer center"><div>center</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer space-around"><div>space-around</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer space-between"><div>space-between</div><div>a</div><div>b</div></div> | ||
<div class="row reverse outer space-evenly"><div>space-evenly</div><div>a</div><div>b</div></div> | ||
<div class="column outer start"><div>start</div><div>a</div><div>b</div></div> | ||
<div class="column outer flex-start"><div>flex-start</div><div>a</div><div>b</div></div> | ||
<div class="column outer end"><div>end</div><div>a</div><div>b</div></div> | ||
<div class="column outer flex-end"><div>flex-end</div><div>a</div><div>b</div></div> | ||
<div class="column outer center"><div>center</div><div>a</div><div>b</div></div> | ||
<div class="column outer space-around"><div>space-around</div><div>a</div><div>b</div></div> | ||
<div class="column outer space-between"><div>space-between</div><div>a</div><div>b</div></div> | ||
<div class="column outer space-evenly"><div>space-evenly</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer start"><div>start</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer flex-start"><div>flex-start</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer end"><div>end</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer flex-end"><div>flex-end</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer center"><div>center</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer space-around"><div>space-around</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer space-between"><div>space-between</div><div>a</div><div>b</div></div> | ||
<div class="column reverse outer space-evenly"><div>space-evenly</div><div>a</div><div>b</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
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 |
---|---|---|
|
@@ -272,6 +272,7 @@ | |
"space", | ||
"space-around", | ||
"space-between", | ||
"space-evenly", | ||
"square", | ||
"srgb", | ||
"standalone", | ||
|
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