Animating the background of a container doesn't propagate to children #6400
Unanswered
michaelala25
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Animate |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I think possibly related to a regression in Textual 6.0.0. See #6235 and #6367 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey y'all, I'm attempting to animate the background of a container, of which all children have their background set to transparent. However, I'm getting some strange behaviour that I haven't been able to suss out - the children of the container don't seem to be animating properly.
In this first simple example, the child backgrounds don't animate at all:
I tried doing this with a "--ping" CSS class instead, which does seem to propagate the initial background change to the children, but the animation still doesn't work for the child backgrounds. With the following
pingimplementation, the child background remains stuck at the initial grey:Here's a video demonstrating the behaviour:
2026-03-01.01-42-18.webm
One thing that seems to reliably trigger a refresh of the stuck background colours is to:
Only then does the background revert to transparent, making me wonder if this is less of a textual issue and more of a terminal issue. This also only seems to occur when I run this very specific app in a very specific setting - running a similar app in a tmux pane gives different, more sporadic behaviour (sometimes hover triggers the redraw, sometimes it doesn't).
I spent a few hours with claude adding debug logs throughout the textual source to see if I could learn anything. Eventually after I noticed this mouse hover behaviour, it gave me this summary:
Can't speak to the veracity of this of course, this was in a session with very minimal supervision.
Beta Was this translation helpful? Give feedback.
All reactions