Skip to content

[css-sizing] Import aspect-ratio from child image #5269

@fantasai

Description

@fantasai

A very common patter is to wrap images in a link tag (or some other tag). If the wrapper is going to behave properly for layout purposes (such as being a flex or grid item) then it will want to have the size and aspect ratio of the image. So we might want some way of pulling up a descendant element’s aspect-ratio into such a wrapper element.

(Tagging against Sizing 4, but might defer to later.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions