Try el.style.setProperty('backgroundColor', 'hsl(200,100%,50%)') and el.style.backgroundColor = 'hsl(200,100%,50%)'
— First doesn't work..
— I don't get it
— It's okay
— Tell me more
— I have never seen the first way
— I've been navigating through some code and there were comment that using style[name] = val may not work for SVG elements... so i put that.. and found it doesnt work for backgroundColor but it works for color...