Skip to content

[css-backgrounds] Add 'scale-down' to background-size #468

@jez9999

Description

@jez9999

This is for css-backgrounds-4 (I can't seem to add labels). Link to spec section:
https://drafts.csswg.org/css-backgrounds-4/

As evidenced by various threads like this one on StackOverflow:
http://stackoverflow.com/questions/21407466/css-background-size-contain-without-the-image-to-scale-up

Quite a few people (myself included) would like the functionality that background-size:contain provides, except that when the image is smaller than the container, it should not scale up. Perhaps we could add background-size:scale-down?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions