aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_align-self-flex-end.htm
blob: 72c85f42010ed39e09527268480e8c7dc8427f19 (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 | align-self: flex-end</title>
<link href="http://opera.com" rel="author" title="Opera Software">
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help">
<link href="reference/ref-pass-body.htm" rel="match">
<meta content="dom" name="flags">
<style>
body {
	color: red;
	align-self: flex-end;
}
.PASS {color: black;}
</style>
</head><body><h1>FAIL, enable javascript</h1>
<script>
    var body = document.body;

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