Home > Article > Web Front-end > A CSS coverage test script implemented in 20 lines of code_javascript skills
Document.styleSheets stores a collection of all CSS rules on the current page. Through it, you can traverse all selectors defined in the page