wpt / css / css-sizing / intrinsic-size-fallback-video.html

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

Data from commit:
708eb61 WPT runner: support mismatch reftests and multiple rel=match links (#665) (2026-08-09)

SubtestStatusMessage
.wrapper 1PASS
.wrapper 2PASS
.wrapper 3PASS
.wrapper 4PASS

/css/css-sizing/intrinsic-size-fallback-video.html

<!DOCTYPE html>
<title>CSS Sizing Test: intrinsic contribution of videos with fallback size</title>
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-contribution">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12053">
<meta name="assert" content="
    These <video>s have no natural size nor natural aspect ratio,
    but fall back to default size of 300x150 (and no aspect ratio).
    Their intrinsic contributions should take these fallbacks into account.">
<style>
.wrapper {
  float: left;
  clear: both;
  border: solid;
}
video {
  background: cyan;
}
</style>
<div id="log"></div>
<div class="wrapper" data-expected-client-width="300">
  <video></video>
</div>
<div class="wrapper" data-expected-client-width="300">
  <video style="height: 100px"></video>
</div>
<div class="wrapper" data-expected-client-width="300">
  <video style="max-height: 50px"></video>
</div>
<div class="wrapper" data-expected-client-width="300">
  <video style="min-height: 200px"></video>
</div>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<script>
checkLayout(".wrapper");
</script>