<!DOCTYPE html> <html> <head> <style> .a { overflow: scroll; } .b, .c { overflow: inherit; } </style> </head> <body> <div class="a"><span class="b"><div class="c"></div></span></div> </body> </html>