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 · May be fixed by #726
Open

[FEATURE REQUEST] Object Fit #691

ckizer opened this issue Jan 24, 2021 · 1 comment · May be fixed by #726

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

@cybermage5
Copy link

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

krypton225 added a commit to krypton225/tachyons that referenced this issue Nov 30, 2024
@krypton225 krypton225 linked a pull request Nov 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants