Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 0c227d9

Browse files
committed
Add test for flex-grow being less than one
This was accidentally tested prior to #1104.
1 parent 5e3869e commit 0c227d9

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

css-flexbox-1/flex-grow-007.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Flexbox Test: flex-grow - less than one</title>
4+
<link rel="author" title="Geoffrey Sneddon" href="mailto:me@gsnedders.com">
5+
<link rel="help" title="7.3.1. The 'flex-grow' property" href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-grow">
6+
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
7+
<meta name="flags" content="">
8+
<meta name="assert" content="Test checks that remaining free space is calculated from 'flex-grow' set to positive number less than one.">
9+
<style>
10+
.container {
11+
background-color: red;
12+
height: 50px;
13+
width: 100px;
14+
}
15+
#test1, #test2 {
16+
display: flex;
17+
height: 50px;
18+
width: 190px;
19+
}
20+
#test1 > div, #test2 > div {
21+
background-color: green;
22+
height: 50px;
23+
}
24+
#test1 > div {
25+
flex-grow: 0.1;
26+
width: 90px;
27+
}
28+
#test2 > div {
29+
flex-grow: 0.05;
30+
width: 45px;
31+
}
32+
</style>
33+
<body>
34+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
35+
<div class="container">
36+
<div id="test1">
37+
<div></div>
38+
</div>
39+
</div>
40+
<div class="container">
41+
<div id="test2">
42+
<div></div>
43+
<div></div>
44+
</div>
45+
</div>
46+
</body>

0 commit comments

Comments
 (0)