- From: andruud via GitHub <sysbot+gh@w3.org>
- Date: Fri, 18 Mar 2022 09:26:34 +0000
- To: public-css-archive@w3.org
andruud has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-contain-3] style() and :visited ==
What happens when you try to query a computed value affected by :visited?
E.g.:
```
<a href="">
<span>Foo</span>
</a>
a {
display: block;
container-type: style;
}
a:visited {
background-color: pink;
}
@container style(background-color: pink) {
span {
--visited:true;
}
}
// gCS(span)[--visited] must not be true
```
Doing the "gCS returns the unvisited situation"-hack is entirely unrealistic in this case. Evaluating against the unvisited background-color is also not a good idea, since we ultimately want to remove the concept of "unvisited alternate reality". Until we fix :visited, we probably need some reasonable stop-gap solution where the query just fails.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7156 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 18 March 2022 09:26:35 UTC