fune/layout/reftests/css-visited/variables-visited-ref.html
Emilio Cobos Álvarez 1ea6ab832c Bug 1858468 - Don't compute custom properties twice inside links. r=dshin
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
2023-10-16 19:55:36 +00:00

7 lines
89 B
HTML

<!doctype html>
<style>
a {
color: green;
}
</style>
<a href="">Which color?</a>