#513: CSS advanced attr() function

Visit on Github.

Opened May 13, 2020

Hello TAG!

I'm requesting a TAG review of the advanced version of the CSS attr() function.

The attr() CSS function is used to retrieve the value of an attribute of the selected element and use it in the stylesheet. There are two versions:

  1. Basic version: Specified in CSS2. Allows usage in pseudo-element content property only as a string. This is already supported by all major browsers.
  2. Advanced version: Specified in CSS Values and Units L4. Allows usage in all CSS properties, and can represent various types of values

You should also know that...

In CSS4, the feature has been substantially revised to ease implementations. Most importantly, it now works similar to var(), namely, attr() is considered valid at parse time, and the actual validation of the attribute value is deferred to computed value time. Please review this version.

We'd prefer the TAG provide feedback as (please delete all but the desired option):

💬 leave review feedback as a comment in this issue and @-notify

Discussions