37

I don't recall this being a thing before, since it'd quite annoying and visually jarring, but I've observed this recently.

  • Look at a downvoted answer with comments
  • Mouse over the comments section
  • Observe that the comments appear immediately whereas the rest of the answer fades in

Note that it doesn't matter if you mouse over comments or the answer first, the behavior is present in both cases.

What I expect to see:

  • The comments section and the answer fade in at an equal cadence.

I've only observed this on Meta so I'm not sure if this happens on Stack Overflow too, and there are reports of this happening network-wide.

For added annoyingness, if one has the fixed top-bar enabled and is hovering over a grayed out question, the top bar flickers for a bit and reappears.

4
  • 4
    Funny, I saw exactly that earlier, but thought it was just always like that and I hadn't noticed yet. It happens also when clicking the "show all comments" link. May 7, 2018 at 16:15
  • 3
    It happens on the main site too. Repro here (may get deleted soon). May 8, 2018 at 8:18
  • 4
    @KeyurPotdar It's still reproducible on that now deleted answer (10k+).
    – Makyen Mod
    May 8, 2018 at 20:15
  • 3
    I just saw it over on RPG as well, so it looks like it's a network-wide issue. Definitely don't remember seeing it before today. May 8, 2018 at 22:58

2 Answers 2

6

As Scoots noted, the problem here is that there are two separate rules trying to apply a transition property to the comment-text class. Since only one of them can win, you get slowly-fading comment highlights but no fades for the hover-opacity on downvoted answer comments.

I introduced this with a fix for Comment flag popup is hidden when flag from the negative voted answers - I noticed the lack of a transition at the time, but honestly did not care because I don't usually spend a lot of time moving my mouse in and out of downvoted answers, and the previous behavior - a faded or obscured flagging dialog - seemed a lot worse.

But since there've been two bug reports on this now, I guess it's distracting for some people. I've proposed a fix that'll switch the opacity fade to the comment-body class, since Scoots' proposed solution requires two separate sets of rules to have intimate knowledge of each other and just feels like asking for trouble.

4

Little late to the party, but there was originally support for this, the CSS transition property is being overridden by another in a higher priority rule:

enter image description here

Altering the overriding transition property to transition: background-color linear 2s, opacity 0.5s; would restore this functionality.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .