scenevr / server

:heart_eyes: Create multiuser 3d environments using html-like tags and javascript
http://www.scenevr.com/
BSD 3-Clause "New" or "Revised" License
144 stars 19 forks source link

Add <style /> tag support #27

Open bnolan opened 9 years ago

bnolan commented 9 years ago

Once #13 is done, it'd be nice to be able to style elements using css selectors. @hayes has posted some sample code that shows how to use cssauron with dom-lite to apply styles.

https://github.com/litejs/dom-lite/issues/13#issuecomment-66239490

The styles should be reapplied anytime a dom node has a significant change (not on position, rotation or scale change). The styles should be set as inline styles, so they are reflected down to the client. The client shouldn't receive the <style /> tags (the same way script tags aren't reflected).