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