blob: 17b6b03871ccccea6701dfdcd3b1c002849d1a15 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Flexbox unit test from csswg.
| http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/chapter-7.htm
-->
<html><head><title>flexbox | flex: N N N%</title>
<link href="http://opera.com" rel="author" title="Opera Software">
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-property" rel="help">
<link href="reference/flexbox_flex-N-N-Npercent-ref.htm" rel="match">
<style>
body {
margin: 0px;
background-color: white;
font-family: Roboto;
font-size: 16px;
}
div {
background: blue;
margin: 1em 0;
border: 1px solid black;
height: 8em;
width: 40em;
display: flex;
}
span {
background: white;
margin: 1em 0;
width: 5em;
display: inline-block;
flex: 4 2 20%;
}
</style>
</head><body><div>
<span style="background: yellow;">one</span>
<span style="background: #FFC0CB;">two</span>
<span style="background: #ADD8E6;">three</span>
<span style="background: #808080;">four</span>
</div>
</body></html>