Allow ::cue or custom properties for styling captions
#720
|
Howdy friends, |
Replies: 2 comments 4 replies
|
thanks for the feedback! indeed that might be the case due to shadow DOM. which media element are you using? |
|
with the native Firefox is I believe the most restrictive in allowing certain CSS properties via the
<hls-video id="video" preload="metadata" controls autoplay muted crossorigin="anonymous" src="https://stream.mux.com/ICURmKjmMbTgtp2TXRJMX5nzCSdctZ1lVmvH13TVAuE.m3u8">
<video></video>
</hls-video>see an example here https://codepen.io/luwes/pen/LYMPNaj |
with the native
<video>it should work like that.see https://codepen.io/argyleink/pen/wvmJWeG
Firefox is I believe the most restrictive in allowing certain CSS properties via the
::cuepseudo class so some will just not work unfortunately.hls-videoallows a native<video>element as a child and that will used under the hood exposing it to the light DOM.code will look a bit like:
see an example here https://codepen.io/luwes/pen/LYMPNaj