-
Notifications
You must be signed in to change notification settings - Fork 144
[BUGFIX] Fix the return type of Selector::isValid()
#1174
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
Conversation
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.
The failing test is because this breaks keyframes parsing, and is not related to the vendor prefix. It just so happens that the keyframes test was written with a vendor prefix, and no equivalent test was written without a vendor prefix.
src/Property/Selector.php
Outdated
{ | ||
return \preg_match(static::SELECTOR_VALIDATION_RX, $selector); | ||
$numberOfMatches = \preg_match(self::SELECTOR_VALIDATION_RX, $selector); |
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.
This needs to be static
because KeyframeSelector
overrides the SELECTOR_VALIDATION_RX
constant to also allow keyframe animation percentage.
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.
Ah, that's why. Fix coming up …
4f80f1e
to
3104219
Compare
Fixes #1043
Part of #811