4 <meta http-equiv=
"content-type" content=
"text/html; charset=utf-8">
5 <title>Test pref for overscroll-behavior property
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
8 <script class=
"testbody" type=
"text/javascript">
10 let css =
"div { overscroll-behavior: auto; }";
11 let style = document.createElement('style');
12 style.appendChild(document.createTextNode(css));
13 document.head.appendChild(style);
15 is(document.styleSheets[
0].cssRules[
0].style.length,
17 "overscroll-behavior shouldn't be parsed if the pref is off");
20 SpecialPowers.pushPrefEnv({ set: [[
"layout.css.overscroll-behavior.enabled", false]] },
22 SimpleTest.waitForExplicitFinish();