Files
servo/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/display_flex_exist.xht

28 lines
1.0 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Flexible Box Test: display_flex</title>
<link href="http://www.intel.com" rel="author" title="Intel" />
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help" />
<meta content="dom" name="flags" />
<meta content="Check if the web engine can indenfy the display value flex." name="assert" />
<style>
div#test{
display: flex;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<div id="test"></div>
<script type="text/javascript">
var t = async_test(document.title, {timeout:500});
t.step(function () {
assert_equals(window.getComputedStyle(document.querySelector('div#test')).display, "flex", "Display value is");
});
t.done();
</script>
</body></html>