You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was currently trying out throwing a URL to an image into a HTML5 data attribute in order to fetch it through CSS/LESS afterwards, injecting it as a content: url() in a pseudo-element (:before & :after), but it seems that despite any kind of black magic tricks I pull off, it will only spit out "attr(data-src)" as a string. Here's an example:
The output in the content is "attr(data-src)" (which yes, it makes sense, I know, but you hopefully get my point) and not "image.png".
Is there any chance of getting LESS to take the content of the data attribute and not literally turn "attr(data-src)" into a string? I'm crossing my fingers here as it can be used for some very interesting things.