Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions features/object-fit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: object-fit
description: The `object-fit` CSS property sets how images, videos, and other replaced elements are scaled within their container.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I endorse "replaced element" here—you've already said what it is through examples, so we're doing a little developer education while we're at it.

spec: https://drafts.csswg.org/css-images-4/#the-object-fit
caniuse: object-fit
compat_features:
- css.properties.object-fit
- css.properties.object-fit.contain
- css.properties.object-fit.cover
- css.properties.object-fit.fill
- css.properties.object-fit.none
- css.properties.object-fit.scale-down
22 changes: 22 additions & 0 deletions features/object-fit.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated from: object-fit.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
support:
chrome: "32"
chrome_android: "32"
edge: "79"
firefox: "36"
firefox_android: "36"
safari: "10"
safari_ios: "10"
compat_features:
- css.properties.object-fit
- css.properties.object-fit.contain
- css.properties.object-fit.cover
- css.properties.object-fit.fill
- css.properties.object-fit.none
- css.properties.object-fit.scale-down
7 changes: 7 additions & 0 deletions features/object-position.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: object-position
description: The `object-position` CSS property places images, videos, and other replaced elements within their boxes.
spec: https://drafts.csswg.org/css-images-3/#the-object-position
# object-fit on caniuse includes both object-fit and object-position.
# `caniuse: object-fit` is set in object-fit.yml
compat_features:
- css.properties.object-position
17 changes: 17 additions & 0 deletions features/object-position.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: object-position.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
support:
chrome: "32"
chrome_android: "32"
edge: "79"
firefox: "36"
firefox_android: "36"
safari: "10"
safari_ios: "10"
compat_features:
- css.properties.object-position
1 change: 1 addition & 0 deletions features/object-view-box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ spec: https://drafts.csswg.org/css-images-5/#the-object-view-box
group: css
compat_features:
- css.properties.object-view-box
- css.properties.object-view-box.none
1 change: 1 addition & 0 deletions features/object-view-box.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ status:
edge: "104"
compat_features:
- css.properties.object-view-box
- css.properties.object-view-box.none