wpt / css / css-overflow / overflow-body-propagation-005.html

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

/css/css-overflow/overflow-body-propagation-005.html

<!doctype html>
<title>CSS Overflow Test: overscroll-behavior doesn't stop overflow from being propagated from the body</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-overflow/#overflow-propagation">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1586600">
<link rel="match" href="reference/overflow-body-propagation-ref.html">
<style>
  :root {
    overscroll-behavior-y: contain;
  }
  body {
    overflow: scroll;
    margin-top: 100px;
  }
</style>
<body>The viewport should have scrollbars, not the body.</body>

/css/css-overflow/reference/overflow-body-propagation-ref.html

<!doctype html>
<html style="overflow:scroll">
<title>CSS Overflow Test Reference</title>
<body style="margin-top:100px">The viewport should have scrollbars, not the body.</body>
</html>