testing/web-platform/tests/css/css-overflow/scrollbar-gutter-root-both-edges.html
author Florian Quèze <florian@queze.net>
Tue, 08 Jul 2025 20:48:53 +0000 (9 hours ago)
changeset 795809 b01190f141a12f4b506acb1f4476561c4b0f2407
parent 768813 50847e50f1f517a3c13c82e4304e8e7aaa8122db
permissions -rw-r--r--
Bug 1960567 - remove the last C++ and scriptable APIs to accumulate data to legacy telemetry histograms, r=chutten. Differential Revision: https://phabricator.services.mozilla.com/D255582
<!doctype html>
<meta charset="utf-8">
<title>CSS Overflow: scrollbar-gutter on the root element</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property">
<link rel="match" href="scrollbar-gutter-root-both-edges-ref.html">

<style>
    body,html {
        background-color: blue;
        margin: 10px;
        padding: 10px;
        border: 5px solid black;
    }

    body{
        border: 5px solid green;
    }


:root {
  scrollbar-gutter: stable both-edges;
}
p {
  background-color: purple;
  color: white;
}
div {
    position:absolute;
    left:-20px;
    top:150px;
    background-color: green;
    width: 100px;
    height: 100px;
    transform: translateZ(0);
}
</style>
<p id="content">Should not have space around me in the inline axis.</p>
<div></div>