Skip to content

Commit 3065771

Browse files
authored
Add aspect-ratio feature (web-platform-dx#602)
1 parent 5e631e5 commit 3065771

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: aspect-ratio
2+
description: "The `aspect-ratio` CSS property controls the width-to-height ratio of elements. For `<img>` and `<video>` elements, the `width` and `height` attributes used together with `height: auto` control the aspect ratio while the image/video is loading."
3+
spec: https://drafts.csswg.org/css-sizing-4/#aspect-ratio
4+
usage_stats: https://chromestatus.com/metrics/css/timeline/popularity/657
5+
compat_features:
6+
- css.properties.aspect-ratio
7+
- html.elements.img.aspect_ratio_computed_from_attributes
8+
- html.elements.video.aspect_ratio_computed_from_attributes

0 commit comments

Comments
 (0)