aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_display-inline.htm
blob: 19a11dc713fd5afdf91c70507ef47269a35defaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html><head><title>flexbox | computed style | display: inline-flex</title>
<link href="http://opera.com" rel="author" title="Opera Software">
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help">
<link href="reference/ref-pass-body.htm" rel="match">
<meta content="dom" name="flags">
<style>
body {
	color: red;
	display: inline-flex;
}
.PASS {color: black;}
</style>
</head><body><h1>FAIL, enable javascript</h1>
<script>
    var body = document.body;

    var passed =
	    getComputedStyle(body).getPropertyValue("display") ==
	    "inline-flex";
    body.textContent = body.className = passed ? "PASS" : "FAIL";
</script>
</body></html>