-
Notifications
You must be signed in to change notification settings - Fork 73
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
New polyfill #1
Comments
Looking at I guess that's needed for supporting |
Most of what you suggested has been published here: https://github.com/bfred-it/object-fit-images
fitie's disadvantages are necessary to support |
I recommend archiving this project. Other solutions have better support and it is irritating when there are multiple polyfills (come on devs, GitHub is actually for collaboration ;-) ) and you have to decide which one to use. |
I’m okay with someone contributing to this project (with a non-failing PR) and eventually taking it over to make such a decision. That being said, bfred-it wrote:
Unless you have evidence to show this is no longer the case, I’m not sure what you are basing your opinion on, other than your personal convenience and current non-video needs. |
So we have a first polyfill in this repo, and a different approach at:
http://codepen.io/jonneal/pen/EKPONK
which I expanded upon at:
http://codepen.io/fvsch/pen/MyyBXW
So whether we make a fitie 2.0 or a new repo with a different name, it would be good to have a broad idea of what we want to do.
Name
"fitie" might be problematic with Edge and older WebKits needing some polyfill too.
If we don't keep this name, I guess we need a new repo.
Feature set
Rationale for some of the changes I did in my codepen:
background-size
andbackground-position
out of the JS and to the CSS: I think it's nice to have the JS only add thebackground-image
, and let users control it in CSS. Likewise, it's probably better to avoid resettingbackground-color
.currentSrc
then removingsrcset
.Do we want to keep all of that? Only specific bits?
The text was updated successfully, but these errors were encountered: