{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2263","repository_url":"https://api.github.com/repos/w3c/csswg-drafts","labels_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2263/labels{/name}","comments_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2263/comments","events_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2263/events","html_url":"https://github.com/w3c/csswg-drafts/issues/2263","id":293879676,"number":2263,"title":"[css-variables] [selectors] Should custom properties work for :visited?","user":{"login":"emilio","id":1323194,"avatar_url":"https://avatars1.githubusercontent.com/u/1323194?v=4","gravatar_id":"","url":"https://api.github.com/users/emilio","html_url":"https://github.com/emilio","followers_url":"https://api.github.com/users/emilio/followers","following_url":"https://api.github.com/users/emilio/following{/other_user}","gists_url":"https://api.github.com/users/emilio/gists{/gist_id}","starred_url":"https://api.github.com/users/emilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilio/subscriptions","organizations_url":"https://api.github.com/users/emilio/orgs","repos_url":"https://api.github.com/users/emilio/repos","events_url":"https://api.github.com/users/emilio/events{/privacy}","received_events_url":"https://api.github.com/users/emilio/received_events","type":"User","site_admin":false},"labels":[{"id":378718577,"url":"https://api.github.com/repos/w3c/csswg-drafts/labels/selectors-4","name":"selectors-4","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-02-02T12:56:07Z","updated_at":"2018-03-15T18:17:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Should the following test-case be brown or yellow?\r\n\r\n```html\r\n<!doctype html>\r\n<style>\r\n  a {\r\n    --foo: brown;\r\n  }\r\n\r\n  :visited {\r\n    --foo: yellow;\r\n    color: var(--foo);\r\n  }\r\n</style>\r\n<a href=\"\">Which color?</a>\r\n```\r\n\r\nRight now Gecko is yellow, blink / webkit are brown."},"comment":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/comments/373474532","html_url":"https://github.com/w3c/csswg-drafts/issues/2263#issuecomment-373474532","issue_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2263","id":373474532,"user":{"login":"tabatkins","id":682840,"avatar_url":"https://avatars0.githubusercontent.com/u/682840?v=4","gravatar_id":"","url":"https://api.github.com/users/tabatkins","html_url":"https://github.com/tabatkins","followers_url":"https://api.github.com/users/tabatkins/followers","following_url":"https://api.github.com/users/tabatkins/following{/other_user}","gists_url":"https://api.github.com/users/tabatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/tabatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabatkins/subscriptions","organizations_url":"https://api.github.com/users/tabatkins/orgs","repos_url":"https://api.github.com/users/tabatkins/repos","events_url":"https://api.github.com/users/tabatkins/events{/privacy}","received_events_url":"https://api.github.com/users/tabatkins/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T18:17:23Z","updated_at":"2018-03-15T18:17:23Z","author_association":"MEMBER","body":"> CSS Selectors says \"record the values of the allowed :visited properties\", but it does not specify if the recorded value is the specified one or the computed one.\r\n\r\nThe commit (that I accidentally pushed earlier; it's still visible from the #2105 PR) specifies in step 2 that you compute styles, then in step 3 you record the styles; the implication is that you're recording computed styles. I can make that more clear.\r\n\r\n(The custom property itself is not recorded, and so any properties other than the \":visited properties\" won't see the values of custom properties set in a :visited rule. But the :visited properties will, since their var()s get resolved before they're recorded.)"}}
{"actor":{"display_login":"tabatkins"}}