attr(<identifier>)

Jens Oliver Meiert <[email protected]> Mon, 21 Sep 2015 20:48:58 +0200
Newsgroups gmane.org.w3c.validator.css,gmane.comp.web.css.general
Message-ID <CAJ0g8QToy-8yDhXuJ1NavV88nZkcH5id1TYbhrbEWn2_x=zvNQ@mail.gmail.com>
(CC www-style for spec may be ambiguous)

The CSS validator throws parse errors for constructs like

a[href^=3D'http']:after {
  content: ' <' attr(href) '>';
}

(Same for =E2=80=9Ccontent: ' \003C' attr(href) '\003E';=E2=80=9D=E2=80=94b=
oth should work
from what I can tell.)

Two of the relevant documents I checked [1,2] seem blissfully unclear
about concatenation, however it appears (per samples like =E2=80=9Cstring-s=
et:
author attr(author);=E2=80=9D) that this is, indeed, valid CSS.
Implementations (WebKit) support that notion, for the code is
supported.

Unless I=E2=80=99m missing something, can the validator team look into this=
,
and the CSS working group clarify if necessary?

Cheers,
 Jens.


[1] http://www.w3.org/TR/CSS21/generate.html
[2] http://www.w3.org/TR/css3-content/

--=20
Jens Oliver Meiert
http://meiert.com/en/

=E2=9C=8E The Little Book of HTML/CSS Frameworks: http://meiert.com/framewo=
rks