Been thinking about adopting constructible style sheets into your document fragments? No? well, I have, and know you can too! https://dev.to/westbrook/why-would-anyone-use-constructible-stylesheets-anyways-19ng … #WebComponents #ShadowDOM #css #CSSModules
-
-
Replying to @WestbrookJ
I was somewhat forced to fix my code in SingleFile (https://github.com/gildas-lormeau/SingleFile …) to support them (i.e. serialize them) and I was not very pleased to be, once again, confronted to a serialization issue related to web components...
1 reply 0 retweets 0 likes -
-
Replying to @WestbrookJ @check_ca
I think I have a better idea now. What would be the ideal use case for you extension there? Seems like making content harder to scape whole hog might be good? Also, what do you do with styles built with things like Emotion or Styled Components?
1 reply 0 retweets 0 likes -
Replying to @WestbrookJ
I would like that innerHTML or something similar serialize them for me. Thus they would be intact. Today, I retrieve them via CSSOM which removes for example vendor prefixed keywords.
2 replies 0 retweets 0 likes
(I'm talking about adopted stylesheets)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.