Re: complex uses for variables in css

On Tue, Mar 1, 2016 at 10:45 PM, Felipe Nascimento de Moura
<felipenmoura@gmail.com> wrote:
> that totally makes sense! Thanks. By the way...

By the way, please do not top-posting in www-style mailing list.

> it is impossible to use it in `content`, like so
>
> ```css
> :root{
>   --size: 10px;
> }
>
> .label::after {
>   content: var(--size);
>   /* ... */
> }
> ```
>
> Maybe that could be something useful too.

This is just because you use the wrong type here. This rule would just
be expanded to "content: 10px;", does it make any sense? If the
variable is a string, it should certainly work.

- Xidorn

Received on Tuesday, 1 March 2016 14:50:42 UTC