mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
LibWeb: Add tests for flex formatting context
This commit is contained in:
parent
9be9bf3379
commit
92cb32b905
30 changed files with 785 additions and 0 deletions
22
Tests/LibWeb/Layout/input/flex-shrink-2.html
Normal file
22
Tests/LibWeb/Layout/input/flex-shrink-2.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<style>
|
||||
body {
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
border: 1px solid salmon;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="box" style="flex: 80% 0 3;">1</div>
|
||||
<div class="box" style="flex: 80% 0 2;">2</div>
|
||||
<div class="box" style="flex: 80% 0 1;">3</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue