mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
28 lines
930 B
HTML
28 lines
930 B
HTML
<!DOCTYPE html>
|
|
<html><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> |