4 ms·
That's exactly my point. If I define: a .test { color: red; } a:visited .test { color: green; } Then I could for example using jQuery do:
by IgorPartola 17y ago
That's exactly my point. If I define:
a .test {
color: red;
}
a:visited .test {
color: green;
}
Then I could for example using jQuery do:
$('a .test').each(function() {
if ( $(this).css('color') == 'green' ) {
console.log( $(this).parent().attr('href') );
}
});
Is that incorrect?
- onedognight 17y ago| When a web page tries to get the computed style of a link (or any of its sub-elements), Firefox will give it unvisited style values.
- IgorPartola 17y agoAh, there it is.
- arantius 17y agoThey've probably thought about this, but what about siblings? a:visited + .sneakydiv { /* ... */ }