-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Selectors with states & pseudo-elements
Copy CSS for selectors involving pseudo-elements and dynamic (state-based) pseudo-classes to the style element added to the document (along with the media queries). `parseCssRules`: - Include rules for such selectors in the "uninlineable" rules array (instead of discarding them), flagging them with "hasUnmatchablePseudo"; - Don't consider selectors with both an unsupported and a supported pseudo-class as matchable for inlining styles. `copyUninlineableCssToStyleNode`: - Strip the unmatchable pseudo-components from selectors before calling `existsMatchForCssSelector`. Various unit tests added. This addresses #280 for the `Emogrifier` class.
- Loading branch information
Showing
3 changed files
with
284 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.