mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Update CSS tests to revision 611d962e1b6ae62ec89ab994c9f787e84ce11b15
This commit is contained in:
@@ -2,22 +2,22 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>flexbox | computed style | display: flex</title>
|
||||
<link href="http://opera.com" rel="author" title="Opera Software" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help" />
|
||||
<link href="reference/ref-pass-body.xht" rel="match" />
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<meta content="dom" name="flags" />
|
||||
<style>
|
||||
body {
|
||||
color: red;
|
||||
display: flex;
|
||||
}
|
||||
.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("display") ==
|
||||
"flex";
|
||||
body.textContent = body.className = passed ? "PASS" : "FAIL";
|
||||
assert_equals(getComputedStyle(body).getPropertyValue("display"),
|
||||
"flex");
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user