blob: b2da298af852a17b3a6b918b31d57107f4af652e (
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 | order: -1</title>
<link href="http://opera.com" rel="author" title="Opera Software">
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-order" rel="help">
<link href="reference/ref-pass-body.htm" rel="match">
<meta content="dom" name="flags">
<style>
body {
color: red;
order: -1;
}
.PASS {color: black;}
</style>
</head><body><h1>FAIL, enable javascript</h1>
<script>
var body = document.body;
var passed =
getComputedStyle(body).getPropertyValue("order") ==
"-1";
body.textContent = body.className = passed ? "PASS" : "FAIL";
</script>
</body></html>
|