Is something like this possible?
<style>
a,
a:active~a.active {
color:#000;
background:#fff;
}
a.active,
a:active {
background:#000;
color:#fff;
}
</style>
This CSS-Code is applied, but overwritten by a.active itself.
I tried !important, but that will overwrite a.active as well!
a:active~a.activeonly applies toa.activeelements that come after ana:activeelement. There is no selector to apply styles toa.activeelements beforea:active. You can’t solve this with!importanteither; you’ll need JavaScript.