CSS attr function
The attr() Function Finally Grows Up
The typed `attr()` function finally lets HTML attributes drive real CSS values — lengths, colors, and angles parsed straight from markup with type hints and fallbacks. Here's how to replace JavaScript glue code with declarative styling.