3 <title>CSS object-view-box with object-fit:contain
</title>
4 <link rel=
"author" href=
"mailto:khushalsagar@chromium.org">
5 <link rel=
"match" href=
"object-view-box-fit-contain-__NAME__-ref.html">
6 <script src=
"support/testHelper.js"></script>
7 <link rel=
"help" href=
"https://drafts.csswg.org/css-images-4/#the-object-view-box">
12 object-view-box: inset(
50px
0px
0px
0px);
16 background-color: grey;
20 .view_box_subset_with_position {
21 object-view-box: inset(
50px
0px
0px
0px);
25 background-color: grey;
28 object-position:
0%
0%;
29 background-color: grey;
32 .view_box_subset_with_scaling {
33 object-view-box: inset(
50px
0px
0px
0px);
35 background-color: grey;
40 object-position:
25px
125px;
43 <__TAG__ class=
"view_box_subset"></__TAG__>
44 <__TAG__ class=
"view_box_subset_with_position"></__TAG__>
45 <__TAG__ class=
"view_box_subset_with_scaling"></__TAG__>
48 populateElements("__IMAGE_SOURCE__");