I'm using the following call to scroll an element into view in Chrome:
element.scrollIntoView({
block: 'center',
inline: 'nearest
})
It works properly in Chrome, but in Safari and IE/Edge, it always scrolls as if I've used block: 'start'. Even when I try changing to block: 'end', it still scrolls that element to the top of its scrollable container.
Am I missing something?
See test code here: https://www.w3schools.com/code/tryit.asp?filename=G1V3LQQSAKF3 (sorry it's not a plunkr, but I copied the sample from the MDN site)