mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
34 lines
No EOL
1.4 KiB
HTML
34 lines
No EOL
1.4 KiB
HTML
<!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 - only one <box> value</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 one <box> value is present then it sets both 'background-origin' and 'background-clip' to that value" name="assert" />
|
|
<style>
|
|
#test {
|
|
background: content-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"),
|
|
"content-box", "background specified value for background-origin");
|
|
}, "background_specified_box_one_origin");
|
|
|
|
test(function() {
|
|
assert_equals(cs.getPropertyValue("background-clip"),
|
|
"content-box", "background specified value for background-clip");
|
|
}, "background_specified_box_one_clip");
|
|
</script>
|
|
|
|
|
|
</body></html> |