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..
The
CSSRule.type
property is deprecated. The recommended alternative is to reference theconstructor.name
property.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!