servo/tests/wpt/css-tests/css-flexbox-1_dev/html/flex-basis-008.htm

35 lines
No EOL
1 KiB
HTML

<!DOCTYPE html>
<html><head><meta charset="utf-8">
<title>CSS Flexbox Test: flex-basis - 50%</title>
<link href="Intel" rel="author" title="http://www.intel.com">
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com">
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property">
<link href="reference/ref-filled-green-100px-square.htm" rel="match">
<meta content="" name="flags">
<meta content="The 'flex-basis' property set positive percentage, the actual width of tested element same as the percentage of flex container size." name="assert">
<style>
#container {
background-color: red;
display: flex;
height: 100px;
width: 100px;
}
#container div{
background-color: green;
height: 100px;
}
#ref {
width: 40px;
}
#test {
flex-basis: 60%;
}
</style>
</head><body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="container">
<div id="ref"></div>
<div id="test"></div>
</div>
</body></html>