wpt / css / css-rhythm / computedstyle / block-level-replaced-elements-affected-by-block-step-size.html

Status: FAIL | Duration: 1ms | Subtests: 0/14 | 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
.test 1FAILassert_equals: data-expected-height expected 100 got 60 assert_equals: data-expected-margin-top expected 20 got 0 assert_equals: data-expected-margin-bottom expected 20 got 0
.test 2FAILassert_equals: data-expected-margin-top expected 20 got 0 assert_equals: data-expected-margin-bottom expected 20 got 0
.test 3FAILassert_equals: data-expected-height expected 100 got 20 assert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 4FAILassert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 5FAILassert_equals: data-expected-height expected 100 got 50 assert_equals: data-expected-margin-top expected 25 got 0 assert_equals: data-expected-margin-bottom expected 25 got 0
.test 6FAILassert_equals: data-expected-margin-top expected 25 got 0 assert_equals: data-expected-margin-bottom expected 25 got 0
.test 7FAILassert_equals: data-expected-height expected 100 got 20 assert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 8FAILassert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 9FAILassert_equals: data-expected-height expected 100 got 20 assert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 10FAILassert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 11FAILassert_equals: data-expected-height expected 100 got 20 assert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 12FAILassert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 13FAILassert_equals: data-expected-height expected 100 got 20 assert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0
.test 14FAILassert_equals: data-expected-margin-top expected 40 got 0 assert_equals: data-expected-margin-bottom expected 40 got 0

/css/css-rhythm/computedstyle/block-level-replaced-elements-affected-by-block-step-size.html

<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-size">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<meta name="assert" content="Checks getComputedStyle for block level replaced margins affected by block-step-size and height of their containers">
<style>
.container {
  display: inline flow-root;
  width: 100px;
}
.block-step {
  display: block;
  block-step-size: 100px;
  visibility: hidden;
}

iframe {
  border: 0;
}

</style>
</head>
<body onload="checkLayout('.test')">

<div class="container test" data-expected-height="100">
  <img class="block-step test" src="../../support/60x60-green.png" data-expected-margin-top="20" data-expected-margin-bottom="20"></img>
</div>

<div class="container test" data-expected-height="100">
  <canvas width="20" height="20" class="block-step test" data-expected-margin-top="40" data-expected-margin-bottom="40"></canvas>
</div>

<div class="container test" data-expected-height="100">
  <svg class="block-step test" viewBox="0 0 100 50" data-expected-margin-top="25" data-expected-margin-bottom="25"></svg>
</div>

<div class="container test" data-expected-height="100">
  <embed type="text/xml" width="20" height="20" class="block-step test" data-expected-margin-top="40" data-expected-margin-bottom="40"></embed>
</div>
<div class="container test" data-expected-height="100">
  <iframe src="" width="20" height="20" class="block-step test" data-expected-margin-top="40" data-expected-margin-bottom="40"></iframe>
</div>

<div class="container test" data-expected-height="100">
  <object width="20" height="20" class="block-step test" data-expected-margin-top="40" data-expected-margin-bottom="40"></object>
</div>

<div class="container test" data-expected-height="100">
  <video width="20" height="20" class="block-step test" data-expected-margin-top="40" data-expected-margin-bottom="40"></video>
</div>

</body>
</html>