wp-user-avatar
/
third-party
/
vendor
/
sabberworm
/
php-css-parser
/
src
/
Property
Last commit date
Selector
5 days ago
AtRule.php
5 days ago
CSSNamespace.php
5 days ago
Charset.php
5 days ago
Declaration.php
5 days ago
Import.php
5 days ago
KeyframeSelector.php
5 days ago
Selector.php
5 days ago
AtRule.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace ProfilePressVendor\Sabberworm\CSS\Property; |
| 5 | |
| 6 | use ProfilePressVendor\Sabberworm\CSS\CSSList\CSSListItem; |
| 7 | /** |
| 8 | * Note that `CSSListItem` extends both `Commentable` and `Renderable`, |
| 9 | * so concrete classes implementing this interface must also implement those. |
| 10 | */ |
| 11 | interface AtRule extends CSSListItem |
| 12 | { |
| 13 | /** |
| 14 | * Since there are more set rules than block rules, |
| 15 | * we’re whitelisting the block rules and have anything else be treated as a set rule. |
| 16 | * |
| 17 | * @internal since 8.5.2 |
| 18 | */ |
| 19 | public const BLOCK_RULES = ['media', 'document', 'supports', 'region-style', 'font-feature-values', 'container', 'layer', 'scope', 'starting-style']; |
| 20 | /** |
| 21 | * @return non-empty-string |
| 22 | */ |
| 23 | public function atRuleName(): string; |
| 24 | } |
| 25 |