I want to avoid, that a user scroll the background when my mobile navbar is opened. That is no problem so far, just set overflow: hidden on body. The problem is, if the navbar has so many items, that it's higher than the users viewport, it won't scroll too. So I want to be able to scroll within the navbar but not on the body at the same time.
The question is thus: Is it possible to change the overflow behavior of an nested element?
Simplified example
// simple helper to add many list items
var menu = document.getElementById('menu');
for(var i=0; i<100; i++) menu.innerHTML += '<li>foo</li>';
.scroll-disabled { overflow: hidden; }
.scroll-enabled { overflow: visible; }
<body class="scroll-disabled">
<ul class="scroll-enabled" id="menu">
<!-- lots of li's // more than the display can show at once-->
</ul>
</body>