| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Sabberworm\CSS\Property; |
| 6 |
|
| 7 |
use Sabberworm\CSS\CSSList\CSSListItem; |
| 8 |
|
| 9 |
/** |
| 10 |
* Note that `CSSListItem` extends both `Commentable` and `Renderable`, |
| 11 |
* so concrete classes implementing this interface must also implement those. |
| 12 |
*/ |
| 13 |
interface AtRule extends CSSListItem |
| 14 |
{ |
| 15 |
/** |
| 16 |
* Since there are more set rules than block rules, |
| 17 |
* we’re whitelisting the block rules and have anything else be treated as a set rule. |
| 18 |
* |
| 19 |
* @internal since 8.5.2 |
| 20 |
*/ |
| 21 |
public const BLOCK_RULES = [ |
| 22 |
'media', |
| 23 |
'document', |
| 24 |
'supports', |
| 25 |
'region-style', |
| 26 |
'font-feature-values', |
| 27 |
'container', |
| 28 |
'layer', |
| 29 |
'scope', |
| 30 |
'starting-style', |
| 31 |
]; |
| 32 |
|
| 33 |
/** |
| 34 |
* @return non-empty-string |
| 35 |
*/ |
| 36 |
public function atRuleName(): string; |
| 37 |
} |