Skip to content

Commit 2898cf8

Browse files
Add auto-sized lazy images feature (#2986)
* New auto-sized lazy images feature * Update features/lazy-loading-image-auto-sizes.yml Co-authored-by: Daniel D. Beck <[email protected]> * Change ID --------- Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 1c24b50 commit 2898cf8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

features/sizes-auto.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: '<img sizes="auto" loading="lazy">'
2+
description: The `sizes="auto"` attribute for the `<img>` HTML element reserves layout space for an image before it loads, avoiding some layout shifts. This attribute only applies to images with the `loading="lazy"` attribute.
3+
spec: https://html.spec.whatwg.org/multipage/images.html#valdef-sizes-auto
4+
group: images
5+
compat_features:
6+
- html.elements.img.sizes.auto

features/sizes-auto.yml.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from: sizes-auto.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "126"
8+
chrome_android: "126"
9+
edge: "126"
10+
compat_features:
11+
- html.elements.img.sizes.auto

0 commit comments

Comments
 (0)