This question already has an answer here:
I just discovered a strange behavior of the CSS syntax highlighting feature which you can see in the following code example:
.first_rule {
color: red;
}
.second_rule:hover {
color: blue;
}
.first_rule
will have a plain black color, but .second_rule
will be highlighted in blue because it is interpreted a keyword. It seems as if .first_rule
would also become a keyword, as soon as I append a pseudo class (or anything else beginning with a colon) to it. This lets the user assume that there is a difference between the two kinds of identifiers, but indeed there isn't.
Is this worth the effort to fix it, in order to keep StackOverflow the most user friendy page on the web? :-)
PS: Sorry, StackOverflow Meta uses a very low contrast for syntax highlighting. Please use Firebug, if you can't see this properly or temporarily paste it to the real StackOverflow.
second_rule
is a moderator. – Yannis May 16 '12 at 22:38