i'm trying to use inline data-attributes as variables for css... is there any known option to get this run:
.mycss-class {text-shadow: attr(data-textshadow); }
<div class="mycss-class" data-textshadow="0 0 0 #000">lorem ipsum</div>
chrome dev-tool just reports "invalid property value"
many thanks & kind regards
attr
cannot be used with anything other thancontent:
, if at all – Asleyaslopestyle="text-shadow: 0 0 0 #000"
and that will give that element the text shadow you are after? Or am I missing the point – Asleyaslope