Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab

This commit is contained in:
James Graham 2015-03-27 09:18:12 +00:00
parent 1a81b18b9f
commit 2c9faf5363
91915 changed files with 5979820 additions and 0 deletions

View file

@ -0,0 +1,34 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Backgrounds and Borders Test: background shorthand - two &lt;box&gt; values</title>
<link href="http://www.intel.com" rel="author" title="Intel" />
<link href="http://www.w3.org/TR/css3-background/#the-background" rel="help" />
<meta content="dom" name="flags" />
<meta content="Check if two &lt;box> values are present, then the first sets 'background-origin' and the second 'background-clip'" name="assert" />
<style>
#test {
background: border-box padding-box;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<div id="test"></div>
<script>
var cs = getComputedStyle(document.getElementById("test"), null);
test(function() {
assert_equals(cs.getPropertyValue("background-origin"),
"border-box", "background specified value for background-origin");
}, "background_specified_box_two_origin");
test(function() {
assert_equals(cs.getPropertyValue("background-clip"),
"padding-box", "background specified value for background-clip");
}, "background_specified_box_two_clip");
</script>
</body></html>