-
Notifications
You must be signed in to change notification settings - Fork 143
Keyframe selector validation #168
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
Keyframe selector validation #168
Conversation
Issues
======
+ Solved 1
- Added 3
See the complete overview on Codacy |
@@ -26,7 +28,7 @@ public function __construct($iLineNo = 0) { | |||
$this->aSelectors = array(); | |||
} | |||
|
|||
public static function parse(ParserState $oParserState) { | |||
public static function parse(ParserState $oParserState, $oList = NULL) { |
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.
@@ -97,7 +97,7 @@ private static function parseListItem(ParserState $oParserState, CSSList $oList) | |||
} | |||
} | |||
} else { | |||
return DeclarationBlock::parse($oParserState); | |||
return DeclarationBlock::parse($oParserState, $oList); |
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->aSelectors[$iKey] = new Selector($mSelector); | ||
} else { | ||
if (!KeyframeSelector::isValid($mSelector)) { |
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 regex for validating keyframe selectors should be slightly different to cover the "n%" part.