Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanik committed May 7, 2020
1 parent 0a03ca8 commit 57a5478
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions dist/demo/dynamic-css-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ <h3>Testing CSS using insertRule</h3>
The Hello world above should have a green background which was added using insertRule.
</p>
<p>
Note, this is currently broken. The html captured from the page does not include
the dynamically styles.
Shutterbug handles this case by serializing the rules of the stylesheets on the page
like this: document.styleSheets[1].cssRules[0].cssText
</p>
<p>
This should be fixable to by improving our css serialization to use a form like: document.styleSheets[1].cssRules[0].cssText
When insertRule is used the text inside the style element remains unchanged so
cloning that element will not capture the dyanmically added styles.
</p>
</body>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 57a5478

Please sign in to comment.