https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ad4489b5132d14d65cdb52845d1c1f8694b9d4cc authored by Ms2ger on 13 March 2018, 16:12:19 UTC
Add tests for transferring ImageBitmap objects.
Tip revision: ad4489b
place-content-shorthand-003.html
<!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>
back to top