position:fixed съезжает при прокрутке страницы

Имеется следующая структура с соответствующими стилями:

*{
    box-sizing: border-box;
}

main{
    display: flex;
    flex-direction: row;
    width: 100%;
    min-width: fit-content;
    max-width: 100%;
    height: fit-content;
    min-height: 100vh;
    margin-top: 9.9vh!important;
    font-family: 'Roboto', sans-serif;
    background: #457987a8;
}

header{
    display: flex;
    position: fixed;
    top:0;
    z-index: 4;
    justify-content: center;
    border-bottom: 0px solid silver;
    padding: 0;
}

.Page_top{
    display: -webkit-flex; 
    display: flex;
    justify-content:center;
    top: 0px;
    line-height: 10vh;
    width: 100vw;
    background: #675640;
}
<header>
  <div class="Page_top">aaaaaaaaaaaa</div>
</header>
<main>

</main>

Попытался воспроизвести проблемы здесь - не вышло. Суть в том, что в Google header с position: fixed - съезжает вверх на пикселей 5-10 при прокрутке вниз, при прокрутке вверх его позиция восстанавливается. Чем это может быть вызвано?


Ответы (0 шт):