| <!DOCTYPE html> | |
| <!-- | |
| | Flexbox unit test from csswg. | |
| | http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/chapter-7.htm | |
| --> | |
| <html><head><meta charset="utf-8"> | |
| <title>CSS Flexbox Test: Indefinite % flex-basis should cause height to be ignored</title> | |
| <link href="https://www.google.com" rel="author" title="Google LLC"> | |
| <link href="http://www.w3.org/TR/css-flexbox-1/#flex-basis-property" rel="help"> | |
| <link href="reference/ref-filled-green-100px-square.htm" rel="match"> | |
| <style> | |
| body { | |
| margin: 0px; | |
| background-color: white; | |
| font-family: Roboto; | |
| font-size: 16px; | |
| } | |
| #container { | |
| background-color: red; | |
| display: flex; | |
| width: 100px; | |
| flex-direction: column; | |
| } | |
| #item { | |
| flex: 0 0 0%; | |
| height: 500px; | |
| background-color: red; | |
| } | |
| #child { | |
| width: 100px; /* Cobalt does not support sizing from intrinsic ratio */ | |
| height: 100px; | |
| background-color: green; | |
| } | |
| </style> | |
| </head><body> | |
| <span>Test passes if there is a filled green square and no red.</span> | |
| <div id="container"> | |
| <div id="item"> | |
| <div id="child"></div> | |
| </div> | |
| </div> | |
| </body></html> |