Why do elements added to the block go up in the google chrome browser when they go down in mozilla firefox?

  • 0
    Question: When I add new DOM nodes to a block, browsers behave differently. In Firefox, added elements go down and drag the button with them, when in google chrome the button stays in place, but new elements go up, which is extremely inconvenient in my opinion ...
    Tell me what you do in this case?
    https://jsfiddle.net/uchenik/89mzd2yo/8/
    JavaScript Anonymous, Sep 25, 2020

  • 1 Answers
  • 0
    This wonderful Google invention is called Scroll anchoring . To disable add in CSS:



    body {
    overflow-anchor: none;
    }
    Gabriella Bullock

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!