AtRule.php
4 years ago
CSSNamespace.php
4 years ago
Charset.php
2 years ago
Import.php
2 years ago
KeyframeSelector.php
4 years ago
Selector.php
4 years ago
index.php
3 years ago
KeyframeSelector.php
18 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Sabberworm\CSS\Property; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class KeyframeSelector extends Selector |
| 5 | { |
| 6 | const SELECTOR_VALIDATION_RX = '/ |
| 7 | ^( |
| 8 | (?: |
| 9 | [a-zA-Z0-9\\x{00A0}-\\x{FFFF}_^$|*="\'~\\[\\]()\\-\\s\\.:#+>]* # any sequence of valid unescaped characters |
| 10 | (?:\\\\.)? # a single escaped character |
| 11 | (?:([\'"]).*?(?<!\\\\)\\2)? # a quoted text like [id="example"] |
| 12 | )* |
| 13 | )| |
| 14 | (\\d+%) # keyframe animation progress percentage (e.g. 50%) |
| 15 | $ |
| 16 | /ux'; |
| 17 | } |
| 18 |