<!DOCTYPE html><html><head><metacharset="utf-8"><title>CSS Values and Units Test: attr() in max()</title><metaname="assert"content="The attr() function notation is allowed inside a max() notation."><linkrel="author"title="Fuqiao Xue"href="mailto:xfq@w3.org"><linkrel="help"href="https://drafts.csswg.org/css-values/#attr-notation"><linkrel="help"href="https://drafts.csswg.org/css-values/#calc-notation"><linkrel="match"href="reference/200-200-green.html"><style>html,body{margin:0px;padding:0px;}html{background:white;overflow:hidden;}#outer{position:relative;background:green;}#outer{width:max(attr(data-testtype(<length>)));height:200px;}</style></head><body><divid="outer"data-test="200px"></div></body></html>