summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-align/content-distribution/place-content-shorthand-002.html
blob: 589feff0c070702495ea94078cdf56c7d62d5a6c (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
<!DOCTYPE html>
<title>CSS Box Alignment: place-content shorthand - multiple 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 two values to place-content sets the first one to 'align-content' and the second one to '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, baselineClasses,
                                overflowClasses);
    for (var key1 in classes) {
        let alignValue = classes[key1];
        let classes2 = Object.assign({"Normal":"normal", "Left":"left", "Right":"right"}, contentPositionClasses,
                                     distributionClasses);
        for (var key2 in classes2) {
            let justifyValue = classes2[key2];
            test(function() {
                checkPlaceShorhandLonghands("place-content", "align-content", "justify-content", alignValue, justifyValue);
            }, "Checking place-content: " + alignValue + " " + justifyValue);
        }
    }
</script>