You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case to serialize the "state" of the CSSOM.Stylesheet, not sure if this would be something useful, but I have working a gist here that exports CSSOM2JSON and JSON2CSSOM:
Is this something that I am unaware of that already exists? I wanted to be able to write out to a JSON, and then read it back in and have a legitimate CSSOM object to work with
The text was updated successfully, but these errors were encountered:
If you're willing to implement toJSON method, I'm willing to take pull requests. I think it would make sense to add toJSON to StyleSheet and perhaps CSSRule.
I have a use case to serialize the "state" of the
CSSOM.Stylesheet
, not sure if this would be something useful, but I have working a gist here that exportsCSSOM2JSON
andJSON2CSSOM
:https://gist.github.com/pyramation/3bafcff80a4fc41b04af8834a2a0d794
Is this something that I am unaware of that already exists? I wanted to be able to write out to a JSON, and then read it back in and have a legitimate
CSSOM
object to work withThe text was updated successfully, but these errors were encountered: