-
Notifications
You must be signed in to change notification settings - Fork 154
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
[FEATURE] Add CssInliner::getMatchingUninlinableSelectors #707
Conversation
Part of #380. The basic functionality of the method is unit-tested. More extensive unit tests involving all kinds of CSS rules and HTML already exist for testing the full content of the `<style>` element containing the uninlinable rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the approach. I've added my remarks on some possible smaller improvements.
- Throw exception if `inlineCss` has not been called; - Put `@media` in backticks in PHPDoc; - Refactor tests to use a data provider (and added one additional test).
Made changes based on suggestions and repushed... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just one final polish.
Repushed... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Part of #380.
The basic functionality of the method is unit-tested. More extensive unit tests
involving all kinds of CSS rules and HTML already exist for testing the full
content of the
<style>
element containing the uninlinable rules.