can we change style of HTML video <track> tag? #14272
-
Is there any way to apply color and font classes to the ::cue {
color: #ccc;
} |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Aug 27, 2024
Replies: 1 comment 3 replies
-
You can use an arbitrary variant like: <video class="[&::cue]:text-neutral-200"> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this as a test:
After some experimenting, it seems to be the CSS variable usage tripping up Chrome. As a work-around, you could consider:
backgroundOpacity
andtextOpacity
core plugins to remove the CSS variable usage: https://play.tailwindcss.com/znOz48QoUw?file=config