Yes, you can definitely do this in one of the javascript web interpreters (Parchment or Quixe, depending on whether you have a z-code or a glulx game). The image would be rendered by the browser, so it doesn’t matter whether the interpreter itself supports graphics (neither Parchment or Quixe does, in fact). Here’s an example of a game running in Quixe with a (presumably nondynamic) CSS background:
archimedes.plus.com/public/m … /play.html
So, that’s easy. The trick comes in getting the game to communicate with the HTML/CSS/Javascript layer. Here’s one way it could be done:
https://intfiction.org/t/parchment-experimental-extensions/1425/1
–Erik