Simple Example
Note how you need type(<color>) to take colours from attributes.
<h1 cx="10" cy="red">hello</h1>
h1 {
font-size: attr(cx rem);
color: attr(cy type(<color>));
}Note how you need type(<color>) to take colours from attributes.
<h1 cx="10" cy="red">hello</h1>
h1 {
font-size: attr(cx rem);
color: attr(cy type(<color>));
}