Christian Kruse: Wert aus Attribut im CSS verwendbar? Also calc() und attr() kombinierbar?

Beitrag lesen

Hallo Matthias,

Vergleiche in deinen Entwicklertools z.B.

outline: calc(7 * 2px) solid;

mit

outline: calc("7" * 2px) solid;

Ja, das wird sich mit der Umsetzung der CSS3-Funktion ändern:

Note: In CSS2.1 [CSS21], the attr() expression always returns a string. In CSS3, the attr() expression can return many different types.

LG,
CK