Skip to content

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to deal with inline styles?
1 participant