Dup Goto 📝

Attr

PT2/lang/css/misc 07-01 16:46:19
To Pop
11 lines, 29 words, 206 chars Tuesday 2025-07-01 16:46:19

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>));
}