This might be one of those “We could do it, but why would we want to” questions (or maybe it has already been addressed, and I missed it), but here goes. I know that PyScript has some limited ability to interact with the DOM without calling JS functions directly, e.g. using Element(‘id’).write() instead of document.getElementByID().write. Is there a way within PyScript to alter CSS? In other words, is there a “pure” PyScript equivalent to:
from js import document . . . document.getElementById('id_name").style.backgroundColor = "red"
For fun, I tried
Element('id').style.backgroundColor = "red", but it doesn’t work. Does PyScript have this functionality and, if not, are there plans to add it?