Skip to content

How widely should HTML's 'aspect-ratio' presentational attribute be applied? #5608

@tabatkins

Description

@tabatkins

In whatwg/html#6032, I'm fixing HTML to define that <img width height> constitutes an 'aspect-ratio' presentational hint (setting 'aspect-ratio' at the presentation-hint layer, lower specificity than any rule). (Previously, this was defined as width/height attributes actually giving the element an intrinsic aspect ratio.)

The text I'm replacing only defined this mapping for img elements, but it seems reasonable that this should apply to all element that currently process 'width' and 'height' attributes as presentational hints: embed, iframe, img, object, and video. Does this sound reasonable to other people?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions