wpt / css / css-images / object-view-box-same-size.html

Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-images/object-view-box-same-size.html

<!DOCTYPE html>
<html>
<title>CSS object-view-box with same size as intrinsic size</title>
<link rel="author" href="mailto:khushalsagar@chromium.org">
<link rel="match" href="object-view-box-negative-bounds-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-images-4/#the-object-view-box">

<style>
.default {
  object-view-box: inset(0px 0px 0px 0px);
  object-fit: fill;
  background-color: black;
}
</style>
<img class="default" src="support/exif-orientation-6-ru.jpg"></img>

/css/css-images/object-view-box-negative-bounds-ref.html

<!DOCTYPE html>
<html>
<title>CSS object-view-box with a negative size : ref</title>
<link rel="author" href="mailto:khushalsagar@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-images-4/#the-object-view-box">

<style>
.default {
  object-fit: fill;
  background-color: black;
}
</style>
<img class="default" src="support/exif-orientation-6-ru.jpg"></img>