Skip to content

[css-sizing-4] aspect-ratio and <picture> #5212

@cbiesinger

Description

@cbiesinger

https://drafts.csswg.org/css-sizing-4/#aspect-ratio

How should aspect-ratio interact with <picture>?

A straightforward application of the spec would have it just use the aspect-ratio on the inner <img>. But it may be useful to specify different aspect-ratios for the different <source>s, so maybe aspect-ratio should "inherit" from the active source to the <img>?

cc @fantasai @tabatkins

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