<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{
height:1000px;
}
@media (overflow-block: scroll) {
h1{
color:green;
}
}
</style>
</head>
<body>
<h1>CSS @media overflow-block</h1>
<p><strong>Note</strong>: Media 'overflow-block' works only in firefox.</p> </body>
</html>