mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat: implement CSS Coverage (#1714)
This patch adds two new methods to the `page.coverage` namespace: - `page.coverage.startCSSCoverage()` - to initiate css coverage - `page.coverage.stopCSSCoverage()` - to stop css coverage The coverage format is consistent with the JavaScript coverage.
This commit is contained in:
7
test/assets/csscoverage/unused.html
Normal file
7
test/assets/csscoverage/unused.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<style>
|
||||
@media screen {
|
||||
a { color: green; }
|
||||
}
|
||||
/*# sourceURL=unused.css */
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user