Home > Web Front-end > JS Tutorial > You can write a CSS coverage test script with just 20 lines of code_Basic knowledge

You can write a CSS coverage test script with just 20 lines of code_Basic knowledge

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 17:35:31
Original
1002 people have browsed it

Document.styleSheets stores a collection of all CSS rules on the current page. Through it, you can traverse all selectors defined in the page