4 ms·
Is this something that can run in browser Workers via wasm or other means? Most of CSS OM is already implemented in Javascript which can come in handy for this
by jafitc 5y ago
Is this something that can run in browser Workers via wasm or other means?
Most of CSS OM is already implemented in Javascript which can come in handy for this project:
https://github.com/NV/CSSOM https://github.com/NV/CSSOM
https://github.com/jsdom/cssstyle https://github.com/jsdom/cssstyle
(both of which jsdom use internally. cssstyle is a kind of updated version for some parts of CSSOM)
- devongovett 5y agoYes, there is a WASM build used by the demo: https://parcel-css.vercel.app https://parcel-css.vercel.app Not sure if we could reuse these packages though, since we'd need to expose an API from Rust to JS anyway.