I'm trying to make a dynamic list that looks something like this -
<div class="list-wrapper">
<ul class="list">
<li class="list-item"> ... </li>
<li class="list-item"> ... </li>
...
<li class="list-item"> ... </li>
</ul>
</div>
The number of list items will change; new items will be appended to the list.
The list needs to stay scrolled / anchored to the bottom of the viewport, even as new items are added.
- i.e., the list shouldn't render starting at the top and scroll to the bottom via JS/TS; it should render from the bottom up
Is there a way to do that solely via layout / CSS, or will we need to do something in JS/TS that forces a scroll to the new list item / child?
Please let me know -- thanks!
inb4 https://stackoverflow.com/a/44051405/3719053 -- that solution can't work due to accessibility (a11y) reasons; the source order must follow the reading order of a given page.