WICG / construct-stylesheets

API for constructing CSS stylesheet objects
Other
138 stars 25 forks source link

Don't set sheet's rules to empty list in replaceSync #103

Closed rakina closed 4 years ago

rakina commented 4 years ago

See https://github.com/WICG/construct-stylesheets/issues/101 for more context. It's possible to throw an error after the "set to empty list" set, resulting in a state where we lose the original contents of the stylesheet, which is not ideal.


Preview | Diff