<!DOCTYPE html>
<title>CSS Values Test: attr() IACVT</title>
<meta name="assert" content="Fail to substitute attr() should be IACVT.">
<link rel="help" href="https://drafts.csswg.org/css-values-5/#attr-notation">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
    #expected {
        background-color: red;
    }
    #test {
        background-color: red;
        background-color: attr(data-color type(<color>));
    }
</style>
<div id="test" d