wpt / css / CSS2 / stacking-context / root-element-creates-stacking-context.html

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

/css/CSS2/stacking-context/root-element-creates-stacking-context.html

<!DOCTYPE html>
<html style="width: 0; height: 0; border: 50px solid red">
  <link rel="help" href="https://drafts.csswg.org/css2/#stacking-context">
  <link rel="match" href="root-element-creates-stacking-context-ref.html">
  <link rel="author" title="Michael Rees" href="mailto:mrees@noeontheend.com">
  <meta name="assert" content="root element forms the root stacking context">
  <body style="border: 50px solid green; margin: -50px; position: relative; z-index: -1">
  </body>
</html>

/css/CSS2/stacking-context/root-element-creates-stacking-context-ref.html

<!DOCTYPE html>
<body style="width: 100px; margin: 0">
  <div style="height: 100px; background: green"></div>
</body>