Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for fetching inline styles #23

Merged
merged 2 commits into from
Feb 16, 2020
Merged

Conversation

bartveneman
Copy link
Member

  1. Searches for inline styles in the DOM with document.querySelectorAll('[style]').
  2. Take content of style attribute
  3. Create new CSSRule with the hash of the CSS as name for the selector: [x-inline-style-7d6da7]

Closes #15

@bartveneman bartveneman merged commit c46a9df into master Feb 16, 2020
@bartveneman bartveneman deleted the extract-inline-styles branch February 16, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

How to deal with inline styles?
1 participant