TricomB2B / object-fit-videos

Polyfill for object-fit and object-position CSS properties on video elements. Works with IE9-11, Edge, Safari <10.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object position

JimmyAppelt opened this issue · comments

commented

Hi,

When I use:

font-family: "object-fit: cover; object-position: center center;"

The video will still scale from the top in IE and Edge. Cover works fine.

Regards

This appears to be working correctly in Edge38 and IE11. Do you have an example I could take a look at?

commented

Unfortunately not yet, since I needed to implement a fix for video's to start playing in IE and Edge, because they currently don't with 1.0.2. I only have this in a development environment available at the moment.

commented

@Toddses I just see you planning a new release in a few days. With the fix for videos not starting 😄 #5 (comment)

just published that fix!

commented

@Toddses thanks, I'll double check the center issue, and try to supply an example.

commented

Hi @Toddses

After investigating this closer, it might be due our minify process. Where the output of the line is a bit different.