.scrollIntoView() state of the element
Let's say I have an element that I scrollIntoView with JS, does the element becomes focused or active or something else? Because if I try to tab trough the elements after it being scrolled into view, the tab indexing starts after that element, but if in CSS I use :focus to change bg-color it doesnt work
1 Reply
i think the tabs work on the first element that is focusable from the start of the visible viewport. So from the spot where you jumped too. Is that element were you scrollInTo focusable (input, button, tabindex, etc...)?
you could test what happens when you do
Does the css :focus work then?