-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: No way to style <video>
element inside <mux-video>
#125
Comments
thanks for the feedback @balexand! this seems like a good solution, we'll discuss and come back to you. Related to muxinc/media-chrome#206 |
Hello, |
I'm new to CSS Shadow Parts but I think we'll need |
It should be available in mux-video. However, we have some concerns about exposing it from mux-player. Started discussion to that point in #380. |
Which Mux Elements/Packages has a bug?
Which browser(s) are you using?
Which operating system(s) are you using?
Mac
How are you using Mux Elements?
<script async src="https://unpkg.com/@mux-elements/mux-video"></script>
.Describe the bug
I want to style the
<video>
element inside of the<mux-video>
element. In particular, I'd like to addobject-fit: cover
.The current behavior
As far as I can tell, there is no way to style this element.
The expected behavior
I want to be able to style it. A simple solution would be to put a
part="video"
attribute on the<video>
element. That way one could style it as described in https://developer.mozilla.org/en-US/docs/Web/CSS/::part. I've tested this out by adding thepart
attribute in Chrome Devtools and it works.The text was updated successfully, but these errors were encountered: