-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
video-js.css corrupt #3013
Comments
None of those are errors and that file is fully utf-8 compliant. The issue is that sass converts the unicode codepoints into utf8 characters but when you view the css directly, it looks like a square because you don't have the font loaded in. We do have a fix in a prerelease version of videojs that will go around sass and have the final output of the css have the codepoints in them directly. |
Thank you very much i really appreciate your work. |
Currently, the rule is applied in IE8 and higher, instead of just IE8. Changing the The expected behaviour is for the For clarity's sake I should add how I encountered this bug. I am overriding the default CSS so the controls aren't hidden during playback when the player is inactive. These are my overriding rules: .video-js .vjs-control-bar {
display: flex;
}
.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
visibility: visible;
opacity: 1;
} In Chrome and Firefox this results in a controlbar which is always visible, in IE11 this results in all the button icons disappearing when the player enters the @media screen {
.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
content: inherit; }
} An option to disable automatically hiding the controls also seems like an elegant solution to me. |
I just updated to the latest version (5.7.1) and noticed this issue is still present. Please re-open this issue, the IE8 media query is still broken. |
Yes, you're correct. We need to somehow address the |
Just wanted to comment that there's no easy fix because sass is doing weird stuff to it. |
Thanks for re-opening this issue. Would it be feasible to separate the IE8 code into a separate CSS file, like it is done for the IE8 JS? You could distribute it as If it is just a few lines of CSS, it might even be easier to drop Sass for the IE8 CSS and just use plain CSS. What do you think? |
Yeah, I'm thinking that the easiest way to solve this (since we can't wait for sass to solve it, they've had an issue related to it open for months) is to pull out that block into a separate css file and then concatenate it as part of the build. |
Exactly. It's not the most ideal solution, but by the time Sass fixes the issue IE8 support might be irrelevant. |
Would you be up for submitting a PR? |
Honestly, I understand conceptually what needs to happen, but I have no idea how to execute it in this project (concatenating the separate CSS file during the build). I've never used Sass or Grunt. |
By now there are two blocks:
Are there still plans to fix this by moving it to a separate file or similar? |
I submitted a PR for review @thasmo on this. |
This is fixed thanks to @erikyuzwa (#3380). Will be out in 5.12, when it gets released. |
🙇 it's a team effort for sure - thanks @gkatsev 👍 |
I found several errors in http://vjs.zencdn.net/5.4.6/video-js.css:
content: "";
@media �screen
Maybe its related to character encoding?
Can you provide me minified CSS with UTF-8 encoding?
The text was updated successfully, but these errors were encountered: