Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Box Alignment: place-content shorthand - initial value</title>
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
<meta name="assert" content="Check that place-content's 'initial' value expands to 'align-content' and 'justify-content'." />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var div = document.createElement("div");
document.body.appendChild(div);
div.style["align-content"] = "start";
div.style["justify-content"] = "end";
div.setAttribute("style", "place-content: initial");
test(function() {
assert_equals(div.style["align-content"],
"initial", "place-content specified value for align-content");
}, "Check place-content: initial - align-content expanded value");
test(function() {
assert_equals(div.style["justify-content"],
"initial", "place-content specified value for justify-content");
}, "Check place-content: initial - justify-content expanded value");
</script>