Skip to content

Support sizes=auto #93

Open
Open
@eeeps

Description

@eeeps

Currently, when running the tool on a page that uses the brand-new sizes=auto syntax, RespImageLint complains,

The sizes attribute has to match the width of the image
The size of the image doesn’t match the sizes attribute auto

At a minimum, auto should be an allowed sizes value. A better solution would check that images with sizes=auto were also lazy-loaded, and had an extrinsic width + height, showing informative errors/warnings if not.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions