stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
https://stitches.dev
MIT License
7.72k stars 251 forks source link

Update deprecated CSSRule.type property. #1120

Closed iambrennanwalsh closed 1 year ago

iambrennanwalsh commented 1 year ago

The CSSRule.type property is deprecated. The recommended alternative is to reference the constructor.name property.

This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible..

See CSSRule.type - Web APIs | MDN


Btw, this is my 1st ever contribution to an open source project. So, I apologize if I did something wrong!