-
Notifications
You must be signed in to change notification settings - Fork 199
Add object-fit and object-position #1831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9eff5ea
Add object-fit and object-position
jamesnw 3027f87
Add missing object-view-box key
jamesnw eff456c
Lint
jamesnw 286f858
Merge branch 'main' into object-fit-position
jamesnw 4a4c5ee
Merge branch 'main' of github.com:web-platform-dx/web-features into o…
jamesnw 3b5167f
Review
jamesnw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ status: | |
| edge: "104" | ||
| compat_features: | ||
| - css.properties.object-view-box | ||
| - css.properties.object-view-box.none | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.