summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-align/content-distribution/place-content-shorthand-001.html
blob: 150633360d72623d58cbff7f7a5863f32e1bb7e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<title>CSS Box Alignment: place-content shorthand - single values specified</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 setting a single value to place-content expands to such value set in both 'align-content' and 'justify-content'." />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/css-align/resources/alignment-parsing-utils.js"></script>
<div id="log"></div>
<script>
    let classes = Object.assign({"Normal":"normal"}, contentPositionClasses, distributionClasses, overflowClasses);
    for (var key in classes) {
        let value = classes[key];
        test(function() {
            checkPlaceShorhandLonghands("place-content", "align-content", "justify-content", value);
        }, "Checking place-content: " + value);
    }
</script>