forked from mirrors/gecko-dev
This matches the behavior of other browsers (in fact, I filed [1] about it long time ago). This avoids a bunch of overhead in some speedometer subtests. Makes me a bit sad because I still think our approach is slightly more correct per spec, but not worth the performance cost. [1]: https://github.com/w3c/csswg-drafts/issues/2263 Differential Revision: https://phabricator.services.mozilla.com/D190705
12 lines
163 B
HTML
12 lines
163 B
HTML
<!doctype html>
|
|
<style>
|
|
a {
|
|
--foo: green;
|
|
}
|
|
|
|
:visited {
|
|
--foo: red;
|
|
color: var(--foo);
|
|
}
|
|
</style>
|
|
<a href="visited-page.html">Which color?</a>
|