Sadly attr() for CSS doesn’t yet support type conversion in any browser (it’s in some spec). If it would be available one could drive styles not with inline styles, but also html attributes (e.g. the ones already on <progress>).
1 Like


















