wpt / css / css-display / display-contents-root-background.html

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

/css/css-display/display-contents-root-background.html

<!doctype html>
<title>CSS Test: display:contents on root element blockified with rendered background.</title>
<link rel="help" href="https://drafts.csswg.org/css-display/#the-display-properties">
<link rel="help" href="https://drafts.csswg.org/css-display/#transformations">
<link rel="match" href="display-contents-root-background-ref.html">
<style>
  :root {
    display: contents;
    background-image: url(../support/1x1-green.png);
  }
</style>
<p>Pass if the background is green.</p>

/css/css-display/display-contents-root-background-ref.html

<!doctype html>
<html style="background:green">
<title>CSS Test Reference</title>
<p>Pass if the background is green.</p>