I have a space on either side of my page, that I need to follow the viewport when scrolling down
Chrome, on windows, seems to have a text rendering bug that is especially bad when it comes to red text on dark backgrounds.

This page has two types of red text
  1. <span> with position: relative;
  2. <code>
When this center page is fully visible vertically, they both look fine

But, if you resize the browser window so that isn't tall enough to fit this page additionally My actual use case is rendering math using katex, both inline and like this: Here's a .gif of a custom slider breaking nearby math on my website, with chrome's debug render layer view enabled

In CSS: None of the following makes any difference: Chromium issue tracker The line below is the bottom of the page writeup by @FreyaHolmér
These spaces need to be in a flex with the main page in the middle, which prevents me from using things like position: fixed;