Though this is impressive, I think this is something that should not be possible with a declarative styling language

Its just using CSS for the rendering, not the game logic.