Re: [csswg-drafts] [css-variables] [selectors] Should custom properties work for :visited?

> should be ignored altogether because `--foo` is not listed among "allowed :visited properties"

True, but `color` is listed. So the value of `color` when the element matches `:visited` should be recorded. This will be `var(--foo)` if it's the specified value, or `rgb(255, 255, 0)` if it's the computed one.

The former will compute to `rgb(165, 42, 42)` when not matching `:visited`, the latter will stay as `rgb(255, 255, 0)`.

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

Received on Friday, 2 February 2018 23:04:24 UTC