mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
Update CSS tests to revision 611d962e1b6ae62ec89ab994c9f787e84ce11b15
This commit is contained in:
@@ -3,24 +3,24 @@
|
||||
<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-wrap-wrap" rel="help">
|
||||
<link href="reference/ref-pass-body.htm" rel="match">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<meta content="dom" name="flags">
|
||||
<style>
|
||||
body {
|
||||
color: red;
|
||||
flex-flow: wrap;
|
||||
}
|
||||
.PASS {color: black;}
|
||||
</style>
|
||||
</head><body><h1>FAIL, enable javascript</h1>
|
||||
</head><body><div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
var body = document.body;
|
||||
|
||||
var passed =
|
||||
(getComputedStyle(body).getPropertyValue("flex-direction") ==
|
||||
"row" &&
|
||||
getComputedStyle(body).getPropertyValue("flex-wrap") ==
|
||||
"wrap");
|
||||
body.textContent = body.className = passed ? "PASS" : "FAIL";
|
||||
assert_equals(getComputedStyle(body).getPropertyValue("flex-direction"),
|
||||
"row");
|
||||
assert_equals(getComputedStyle(body).getPropertyValue("flex-wrap"),
|
||||
"wrap");
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user