pointer-events-no-scrollbars-002.html (1290B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <title>CSS Test: dynamic changes to pointer-events shouldn't cause overlay scrollbars to appear</title> 4 <link rel="author" title="L. David Baron" href="https://dbaron.org/"> 5 <link rel="author" title="Google" href="http://www.google.com/"> 6 <link rel="help" href="https://drafts.csswg.org/css-ui-4/#pointer-events-control"> 7 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1414142"> 8 <meta name="assert" content="Dynamic changes to pointer-events shouldn't cause overlay scrollbars to appear. (I concede this could perhaps be allowed by the wording in the spec that makes basically everything related to scrollbar rendering UA-defined. However, there is no allowance for pointer-events affecting scrollbar rendering, so I think it's defensible.)"> 9 <link rel="match" href="pointer-events-no-scrollbars-001-ref.html"> 10 11 <style> 12 13 #scroll { 14 width: 200px; 15 height: 200px; 16 overflow: auto; 17 } 18 19 #big { 20 width: 500px; 21 height: 500px; 22 } 23 24 </style> 25 26 27 <div id="scroll"> 28 <div id="big"> 29 </div> 30 </div> 31 32 <script> 33 34 document.documentElement.addEventListener("TestRendered", (event) => { 35 document.getElementById("scroll").style.pointerEvents = "none"; 36 document.documentElement.classList.remove("reftest-wait"); 37 }); 38 39 </script>