wpt / css / css-contain / contain-paint-017.html

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

/css/css-contain/contain-paint-017.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Containment Test: Paint containment on table-footer-group</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Paint containment doesn't apply to table-footer-group elements.">
<style>
div {
  display: table-footer-group;
  contain: paint;
}
span {
  position: absolute;
}
</style>

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

/css/reference/pass_if_pass_below.html

<!doctype html>
<html>
<head>
   <title>Reference rendering - passes if there is the word "PASS" below</title>
   <link rel="author" title="Opera" href="https://www.opera.com/">
</head>
<body>
   <p>Test passes if there is the word "PASS" below.</p>
   <div>PASS</div>
</body>
</html>