Re: [csswg-drafts] [css-values-5][css-content-3] Add functions for time-sensitive styling (#12146)

What are the expected use-cases for this? This is a *lot* of complexity to pull in, and needs a reasonably good use-case to justify it.

> I've noticed date displaying shows up pretty much constantly, and it'd be nice to be able to simply do `content: datetime(attr(data-time ms));` in CSS with `data-time="{{ms}}"` rather than having to roll a `<span>{{date_time}}</span>` possibly across hundreds of instances.

This would *not* be a good use-case, fwiw. That's meaningful information in the page, and should be expressed in the page markup, not hidden in attributes and then exposed via CSS.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12146#issuecomment-2847994097 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 2 May 2025 19:52:45 UTC