wpt / css / css-backgrounds / background-clip / clip-border-area-on-body-propagated-to-root.html

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

/css/css-backgrounds/background-clip/clip-border-area-on-body-propagated-to-root.html

<!DOCTYPE html>
<title>background-clip:border-area on the root</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-background-clip">
<link rel="match" href="../reference/green-root-background.html">
<style>
html, body {
  box-sizing: border-box;
  height: 100%;
  margin: 0;
}
html {
  color: transparent;
  border: 20px solid transparent;
}
body {
  background-color: green;
  background-clip: border-area;
}
</style>

The border should not be visible; the page should be entirely green.

/css/css-backgrounds/reference/green-root-background.html

<!DOCTYPE html>
<style>
:root {
  background-color: green;
}
</style>