summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-variables/variable-definition-border-shorthand-serialize.html
blob: c3f8e58fa53dbef52e0998a0c385869dd95f8d12 (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
26
27
<!DOCTYPE html>
<html>
<head>
    <title>Variables - border shorthand set, serialize border-color</title>

    <meta rel="author" title="Kevin Babbitt">
    <meta rel="author" title="Greg Whitworth">
    <link rel="author" title="Microsoft Corporation" href="http://microsoft.com" />
    <link rel="help" href="http://www.w3.org/TR/css-variables-1/#variables-in-shorthands">

    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
</head>
<body>
    <div id="target" style="border: var(--borderwidth) solid black"></div>

    <script type="text/javascript">
        "use strict";

        test(function() {
            var target = document.getElementById("target");
            assert_equals(target.style.getPropertyValue("border-color"), "");
        }, "border-color should serialize to empty when border shorthand references a variable");
    </script>
</body>
</html>