blob: 815c29f832b51546a8477264124daab9620e5575 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD//XHTML 1.0 Strict//EN" "">
| Flexbox unit test from csswg.
<html xmlns=""><head>
<title>CSS Test: The 'flex' shorthand adjusting the 'flex-grow' sub-property</title>
<link href="" rel="author" title="Microsoft">
<link href="" rel="help">
<link href="reference/justify-content-001-ref.htm" rel="match">
<meta content="" name="flags">
<meta content="This test checks that the flex grow factor determines the distribution of positive free space." name="assert">
<style type="text/css">
body {
margin: 0px;
background-color: white;
font-family: Roboto;
font-size: 16px;
background-color: red;
display: flex;
width: 300px;
div div
background-color: #ffa500;
flex: 1 0 auto;
height: 100px;
background-color: blue;
<span>Test passes if there is a single blue rectangle on the left, a single orange rectangle directly to its right, and there is no red visible on the page.</span>
<div id="flexbox">
<div id="flexItem1"></div>