Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
div {
  margin: 15px;
  padding: 3px;
  border: solid black 1px;
  overflow: hidden auto;
}
#flex-container {
  display: flex;
  flex-wrap: wrap;
  background-color: rgb(197, 255, 236);
  height: 300px;
}
#flex-container > div {
  flex: 1;
  height: 150px;
}
#flex-container > div > p {
  inline-size: 300px;
}
#pinkDiv {
  background-color: rgb(255, 205, 213);
  writing-mode: vertical-rl;
}
#yellowDiv {
  background-color: rgb(255, 255, 161);
  writing-mode: vertical-rl;
  overscroll-behavior-inline: contain;
}
</style>
</head>
<body>
<h1>Try right box with no overscroll chaining in the inline-direction</h1>
<p>The writing-mode property value 'vertical-rl' changes inline-direction from the x-axis to the y-axis, so now the overscroll-behavior-inline works in the y-direction instead of the x-direction.</p>
<p>Put the mouse pointer over the left pink box, scroll down to the bottom of it, continue scrolling, and the scrolling behavior will transfer to the green parent element. This is called overscroll chaining, when overscrolling in one element leads to scrolling behavior in the parent element. Scroll chaining is default behavior.</p>