Skip to content

Commit 52547c7

Browse files
authored
Add notes in readme about CSS-in-JS
1 parent 303a271 commit 52547c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
Existing packages like
2020
[get-css](https://github.com/cssstats/cssstats/tree/master/packages/get-css)
2121
look at a server-generated piece of HTML and get all the `<link>` and `<style>`
22-
tags from it. This works fine for 100% server rendered pages, but apps that
23-
employ style injection with JavaScript will not be covered.
22+
tags from it. This works fine for 100% server rendered pages, and pages with
23+
CSS-in-JS styling.
2424

2525
### Solution
2626

2727
This module uses an instance of Chromium to render a page. This has the benefit
2828
that most of the styles can be rendered, even when generated by JavaScript. The
2929
[Puppeteer CSSCoverage API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#coveragestartcsscoverageoptions)
3030
is the power behind finding most of the CSS. Additionally, the
31-
`document.styleSheets` API is used.
31+
`document.styleSheets` API is used to get CSS-inJS styling.
3232

3333
## Installation
3434

0 commit comments

Comments
 (0)