<!DOCTYPE html><title>CSS Values Test: attr() IACVT</title><metaname="assert"content="Fail to substitute attr() should be IACVT."><linkrel="help"href="https://drafts.csswg.org/css-values-5/#attr-notation"><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><style>#expected{background-color:red;}#test{background-color:red;background-color:attr(data-colortype(<color>));}</style><divid="test"data-color=333></div><divid="expected"></div><script>varelem=document.getElementById("test");varvalue=window.getComputedStyle(elem).getPropertyValue("background-color");varexpected_elem=document.getElementById("expected");varexpected_value=window.getComputedStyle(expected_elem).getPropertyValue("background-color");test(()=>{assert_not_equals(value,expected_value);});</script>