Skip to content

Instantly share code, notes, and snippets.

@fvsch
Created November 5, 2020 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fvsch/14cae2fa8e845b11f1b26084903239c6 to your computer and use it in GitHub Desktop.
Save fvsch/14cae2fa8e845b11f1b26084903239c6 to your computer and use it in GitHub Desktop.
/* DIV in the Shadow DOM in Safari, has white-space:pre so text doesn't wrap */
::-webkit-media-text-track-display {
white-space: normal !important;
}
/* These overrides should work but don't seem to be working at all, not sure why */
::-webkit-media-text-track-display-backdrop {
background-color: black !important; /* default: rgba(0, 0, 0, 0.5) */
}
/* SPAN inside the track-display container, has a forced color, better to not mess with it? */
::cue {
color: yellow !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment