TL;DR:
I want to define the width in the HTML
<span class="skill-bar html-skill" data-width="80%"></span>
and then use the data-width value in CSS but I'm not able to do so.
.skill-bar {
width: attr(data-width);
}
More in-depth:
I'm trying to make my portfolio with skill-bars that show how experienced I am in each language and until now I set the width of each bar by setting an individual class in the HTML like Html-bar or javascript-bar and have to manually transfer the values from the HTML to the CSS but I'd much rather just use data-* attributes.