Skip to content

Conversation

benbek
Copy link

@benbek benbek commented Jan 11, 2016

Resolves #24.

Puts all CSS styles into the HTML as “style” attribute.
This approach is well suited to environments where one cannot have HTML
with an accompanying CSS file.
Shortcomings:

  • Not all CSS rules are convertible to HTML Style attributes. For
    example, no pseudo-selectors (such as ’:hover’, ‘:before’, ‘:after’)
    can be rendered.

Also, I felt that a more natural place for non-filters such as SameRulesCombiner and HTMLStylesCombiner would be a new processors directory.

Puts all CSS styles into the HTML as “style” attribute.
This approach is well suited to environments where one cannot have HTML
with an accompanying CSS file.
Shortcomings:
- Not all CSS rules are convertible to HTML Style attributes. For
example, no pseudo-selectors (such as ’:hover’, ‘:before’, ‘:after’)
can be rendered.
@kdzwinel
Copy link
Owner

Looks great! I'll try it out (and merge it) this week.

@jumbojett
Copy link

bump

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.

3 participants