web-platform-tests / web-platform-tests/interop
CSS object-view-box
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 524
- Forks
- 35
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 10
Description
Description
object-view-box allows a replaced element like an <img> to be cropped and resized using just a CSS property.
img {
object-view-box: inset(25% 20% 15% 0%);
}
https://ishadeed.com/article/css-object-view-box/
https://css-tricks.com/first-look-at-the-css-object-view-box-property/
(I have shamelessly recycled last year's suggestion: https://github.com/web-platform-tests/interop/issues/1150)
Specification
https://drafts.csswg.org/css-images-5/#the-object-view-box
web-feature
object-view-box
Test Links
https://wpt.fyi/results/?q=feature:object-view-box
There are also tests with view transitions here not included in the tests with the feature label: https://wpt.fyi/results/css?label=experimental&label=master&aligned&q=object%20view%20box
Additional Signals
This was the 2nd-most-added Reading List item in State of CSS 2023: https://2023.stateofcss.com/en-US/features/#reading_list
Shipped in Blink, Experimental in WebKit.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS Images Level 5 specification and the linked WPT results for object-view-box, including the view-transition tests. Determine the relevant existing coverage and the requirements for including this feature in Interop; done means the scope and test set are agreed and the feature is ready for project tracking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- testing, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100