所选帖子的颜色在深色主题下淡入效果抖动

When you open a topic, the currently selected post fades in a certain color. Here on meta for dark theme, it’s a blue color, fading to the normal black. Recently this started getting jittery towards the end of the transition, instead of transitioning smoothly. I first noticed this on community.wanikani.com’s dark theme, but it’s happening here on meta as well. I’ve seen this using both Chrome and Edge across two different computers. Another Discourse site I use, which I’m fairly certain is quite a bit behind latest, does not exhibit this problem. If there’s a way for me to check the version of that site from the browser console (and if that information would be useful) let me know and I’ll add that information here.

See the video below for a demonstration.

3 个赞

From Chrome: Right click a blank part the site, select view page source. Around line 9 you’ll see the version, as well as the commit itself. Please share both.

1 个赞

community.wanikani.com (has this issue):

  • Discourse 2.4.0.beta6 - https://github.com/discourse/discourse version 437edfc4157aac4d9a50d911bca550d4425193cf
  • Commit from October 28th

community.bunpro.jp: (does not have this issue):

  • Discourse 2.4.0.beta2 - https://github.com/discourse/discourse version 3503758599ae451b962afa4e05c8e88dcb0f021a
  • Commit from August 10th

As I thought, the site not exhibiting the issue is pretty out of date. For what it’s worth, I think this issue appeared only in the last week or two on community.wanikani.com. I visit there several times a day, so I would have noticed it as soon as it started happening.

1 个赞

Is this happening on the light theme as well?

1 个赞

I can reproduce the issue here on Meta as well on the site that’s on an older commit

I’m pretty sure this is not our bug, I can reproduce it in a fiddle

If you hit run multiple times you’ll notice that the first and second box don’t have the issue.

The first box represents the light theme. it does not have the issue. The second one is one I added a black background to for comparison. It also does not have the issue.

The issue is most noticeable in the third box, which uses the same colors as the default dark theme. I think the color combination is tripping the browser here somehow. I’ve tried all the animation hacks that I’m aware of and the result was still the same.

Short of changing our animation or using different colors, I’m not sure what we can do here other than wait for a fix from the browser, which might not happen any time soon.

3 个赞

As I mentioned, it’s happening on both Chrome and Edge. Edge is still pre-chromium, so it’s not like they’re using the same rendering engine or anything. That’s what makes it so strange that it just started happening. Granted I only checked Edge to try to confirm that it wasn’t a Chrome bug. It’s entirely possible that it’s been happening on Edge for who knows how long, and it was only recently introduced in Chrome as well.

I also noticed this for the first time on my new laptop, which I’ve only had for a week and a half. That’s why I also verified the issue on a second computer, to rule out it being specific to my new computer. But I can boot up my old laptop later to see if it happens there. Maybe there’s some kind of hardware optimization going on depending on the computer.

1 个赞

Welcome to the cross-browser support hell that we have to work with daily :stuck_out_tongue:

To be clear, this is a valid issue so thanks for posting it. I’d love to fix it, the issue here is that our options are limited to working around browser issues.

Changing the animation would introduce a new pattern to everyone that’s been using Discourse for the last 5+ years. Changing the colors in the dark theme would also affect all the sites that use Discourse. Neither of those are options that I want to entertain.

I’m not saying that I’ve exhausted all the hacks that might improve this, but all the ones I know have not made any difference.

That said, and short of any hacks that I might discover later, I’d say let’s wait this out for, say, 3 months and revisit then.

5 个赞

已经过去三个多月了,所以我打算来跟进一下。这个问题在 Chrome 中依然存在,在 Firefox 中似乎也会出现。如果您仍然没有可行的变通方案,那也没关系,但我觉得提醒一下总没有坏处。

1 个赞

这既针对深色主题,又针对特定浏览器,因此我很难对此产生哪怕一丝一毫的关心。

既然在 Chrome、Edge 和 Firefox 中都会发生,这真的只是特定于某个浏览器的问题吗?况且,使用深色主题的人不是很多吗?

我没看到其他人抱怨,所以没有?

Sean 是我们托管的一个网站的成员。

这并非“付费参与”的问题,而是一个鲜为人知的浏览器 bug。我们这里使用的是 CSS 动画,而非某种 jQuery hack 动画。我认为对于这种非常轻微的显示问题,并没有显而易见的修复方案。

4 个赞

别担心,我只是想确认一下。

1 个赞

如果您对此感到担忧,建议您向能够真正修复该错误的浏览器开发者报告。上游已发布一个可复现的示例,方便您进行报告。

@seanblue,您可能想查看一下这些关于错误报告的链接。

Firefox

Bug Writing Guidelines

Bugzilla Main Page

Google Chrome

Report an issue or send feedback on Chrome - Computer - Google Chrome Help

Microsoft Edge

Alt + F > 设置 > 外观 > 启用“显示反馈”按钮 > 点击浏览器右上角的“显示反馈”按钮 > 报告错误

希望这些信息对您有所帮助!:grin:

1 个赞