Skip to content

Add sizes=auto support info for <img> elements#23785

Merged
Elchi3 merged 5 commits intomdn:mainfrom
tunetheweb:sizes=auto
Jul 15, 2024
Merged

Add sizes=auto support info for <img> elements#23785
Elchi3 merged 5 commits intomdn:mainfrom
tunetheweb:sizes=auto

Conversation

@tunetheweb
Copy link
Copy Markdown
Contributor

Summary

The sizes attribute for an <img> element now allows for the auto value:
whatwg/html#8008

Test results and supporting details

Search for "auto" here: https://wpt.fyi/results/html/semantics/embedded-content/the-img-element/sizes/sizes-auto.html?label=experimental&label=master&aligned

Chrome issue: https://issues.chromium.org/issues/40862170#comment31
Firefox issue (not implemented yet): https://bugzilla.mozilla.org/show_bug.cgi?id=1819581
Safari issue (not implemented yet): https://bugs.webkit.org/show_bug.cgi?id=253143

Related issues

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jul 11, 2024
@tunetheweb tunetheweb changed the title Add sizes=auto support info for imag elements Add sizes=auto support info for <img> elements Jul 11, 2024
Copy link
Copy Markdown
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be better in html/elements/img.json (or in both).

Copy link
Copy Markdown
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firefox issue (not implemented yet): https://bugzilla.mozilla.org/show_bug.cgi?id=1819581
Safari issue (not implemented yet): https://bugs.webkit.org/show_bug.cgi?id=253143

Would you mind adding these as impl_url?

@github-actions github-actions bot added the data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML label Jul 15, 2024
@tunetheweb
Copy link
Copy Markdown
Contributor Author

Would you mind adding these as impl_url?

Done!

I think this would be better in html/elements/img.json (or in both).

Added to there too (as sizes is in both)

Copy link
Copy Markdown
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants