Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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" />
<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>