Revision bb80e224f4d801dc6bd21b6e330cce5fe3fa8055 authored by Henrik Skupin on 24 April 2018, 21:19:20 UTC, committed by jgraham on 01 May 2018, 09:56:37 UTC
After closing the last top-level browsing context, the session will be closed too. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1455282 gecko-commit: e60e61507ef4a95ab2456d13126f6fef9086109a gecko-integration-branch: autoland gecko-reviewers: ato
1 parent 8b9f853
background-335.html
<!DOCTYPE html>
<html>
<head>
<title>CSS Backgrounds and Borders Test: background shorthand - only one <box> value</title>
<link rel="author" title="Intel" href="http://www.intel.com" />
<link rel="help" href="http://www.w3.org/TR/css3-background/#the-background" />
<meta name="flags" content="dom" />
<meta name="assert" content="Check if one <box> value is present then it sets both 'background-origin' and 'background-clip' to that value" />
<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>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...