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

[TASK] Test :nth-last-child #750

Merged
merged 1 commit into from
Sep 29, 2019
Merged

[TASK] Test :nth-last-child #750

merged 1 commit into from
Sep 29, 2019

Conversation

JakeQZ
Copy link
Contributor

@JakeQZ JakeQZ commented Sep 29, 2019

Also updated the regex for supported pseudo-classes (PSEUDO_CLASS_MATCHER) so
that those supported are explicitly specified (rather than ‘anything ending with
-child or anything ending with -type(’), without acually affecting the valid
pseudo-class names it will match. Except in the Emogrifier class – this
doesn’t support :nth-last-child so that has been removed (to the effect that
rules with it will now be copied to the <style> element rather than attempted
to be inlined).

And added :nth-last-child to the list of supported pseudo-classes in the
README. (Also, for consistency, added () to the other :nth… pseudo-classes
in that section.)

Part of #747.

Also updated the regex for supported pseudo-classes (`PSEUDO_CLASS_MATCHER`) so
that those supported are explicitly specified (rather than ‘anything ending with
`-child` or anything ending with `-type(`’), without acually affecting the valid
pseudo-class names it will match.  Except in the `Emogrifier` class – this
doesn’t support `:nth-last-child` so that has been removed (to the effect that
rules with it will now be copied to the `<style>` element rather than attempted
to be inlined).

And added `:nth-last-child` to the list of supported pseudo-classes in the
README.  (Also, for consistency, added `()` to the other `:nth…` pseudo-classes
in that section.)

Part of #747.
@@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## x.y.z

### Added
- Test `:nth-last-child`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking about it, it's not just tests being added. These are new features by virtue of the Symfony CssSelector component. So these last 3 CHANGELOG entries should in fact read “Support and test …”. I can change that in a separate PR.

@oliverklee oliverklee merged commit a5bea23 into master Sep 29, 2019
@oliverklee oliverklee deleted the test/nth-last-child branch September 29, 2019 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants