On attr() and calc()
Read OriginalThis article argues for allowing CSS attr() values to be used within calc() functions, a feature currently missing from the specification. The author explains how this combination would enable more dynamic, semantic styling—such as creating CSS-based bar charts using HTML5 data attributes—without bloating CSS or using inline styles.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
1
ServiceNow and Microsoft Copilot
Marius Sandbu
•
1 votes
2
The Learning Loop and LLMs
Martin Fowler
•
1 votes