mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
24354a4879
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.
9 lines
269 B
HTML
9 lines
269 B
HTML
<link rel="stylesheet" href="stylesheet1.css">
|
|
<link rel="stylesheet" href="stylesheet2.css">
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
// Force stylesheets to load.
|
|
console.log(window.getComputedStyle(document.body).color);
|
|
}, false);
|
|
</script>
|