Further experimentation revealed that the iterator ri rather than i works in this situation. This is unclear to me, since the event trigger for the same component uses localStorage[i] to index each element, so I expected to be able to use i to reference the same container in the background style for that container.
1 Like