Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<?xml version="1.0" encoding="UTF-8"?>
<!--
Any copyright is dedicated to the Public Domain.
-->
<!--
This test verifies that a flex container which only contains text
will render correctly. We use justify-content to position the text
in the center of the flex container, as a sanity-check to be sure we
are in fact getting a flex container.
-->
<head>
<style>
div.flexbox {
width: 200px;
height: 100px;
background: lightgreen;
justify-content: center;
display: flex;
}
</style>
</head>
<body>
<div class="flexbox">text</div>
</body>
</html>