wpt / css / css-contain / contain-size-012b.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-contain/contain-size-012b.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Containment Test: Size containment on display:inline-table</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/pass_if_pass_below_clipped.html">
<meta name=assert content="Size containment doesn't apply to inline-table boxes.">
<style>
div {
  display: inline-table;
  contain: size;
  overflow: hidden;
}
</style>

<p>Test passes if there is the word "PASS" below.</p>
<div>PASS</div>

/css/css-contain/reference/pass_if_pass_below_clipped.html

<!doctype html>
<html>
<head>
   <title>Reference rendering - passes if there is the word "PASS" below</title>
<style>
div { overflow: hidden; }
</style>
</head>
<body>
   <p>Test passes if there is the word "PASS" below.</p>
   <div>PASS</div>
</body>
</html>