aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-flow-row-reverse-nowrap.htm
blob: 3ea7738d61b11aa67580878e4c7828fa5e32e4b5 (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
24
25
26
27
<!DOCTYPE html>
<html><head><title>flexbox | computed style | flex-flow: row-reverse nowrap</title>
<link href="http://opera.com" rel="author" title="Opera Software">
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help">
<link href="http://www.w3.org/TR/css-flexbox-1/#valdef-flex-direction-row-reverse" rel="help">
<link href="http://www.w3.org/TR/css-flexbox-1/#valdef-flex-wrap-nowrap" rel="help">
<link href="reference/ref-pass-body.htm" rel="match">
<meta content="dom" name="flags">
<style>
body {
	color: red;
	flex-flow: row-reverse nowrap;
}
.PASS {color: black;}
</style>
</head><body><h1>FAIL, enable javascript</h1>
<script>
    var body = document.body;

    var passed =
	    (getComputedStyle(body).getPropertyValue("flex-direction") ==
	    "row-reverse" &&
	    getComputedStyle(body).getPropertyValue("flex-wrap") ==
	    "nowrap");
    body.textContent = body.className = passed ? "PASS" : "FAIL";
</script>
</body></html>