blob: 137094eb2a6a0a2f37691f5c1d94c9ccd9d26d13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!DOCTYPE html>
<title>CSS Box Alignment: place-content shorthand - initial value</title>
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css3-align/#propdef-place-content" />
<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>
|