Skip to content
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

[FEATURE REQUEST] Object Fit #691

Open
ckizer opened this issue Jan 24, 2021 · 1 comment
Open

[FEATURE REQUEST] Object Fit #691

ckizer opened this issue Jan 24, 2021 · 1 comment

Comments

@ckizer
Copy link

ckizer commented Jan 24, 2021

Loving Tachyons so far.

I've got some feature request ideas. In this example I've been using object-fit: cover; to make the img tag stretch the photo to full height. Using object fit has become more common in development lately. Unfortunately Tachyons only support .cover which only affects background image.

CleanShot 2021-01-23 at 21 19 37@2x

Ideally I'd love to see something like this included in tachyons:

.object-cover {
    object-fit: cover;
}
.object-contain {
    object-fit: contain;
}
.object-fill {
    object-fit: fill;
}
.object-contain {
    object-fit: contain;
}
.object-scale-down {
    object-fit: scale-down;
}
.object-none {
    object-fit: none;
}

It's very useful when scaling images

@NicholasDevStore
Copy link

Isn't there any plan to add this feature yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants