| 1 |
<?php |
| 2 |
|
| 3 |
// AUTOMATICALLY GENERATED. DO NOT EDIT. |
| 4 |
// Use `composer build` to regenerate. |
| 5 |
|
| 6 |
namespace Wikimedia\IDLeDOM; |
| 7 |
|
| 8 |
/** |
| 9 |
* CSSRule |
| 10 |
* |
| 11 |
* @see https://dom.spec.whatwg.org/#interface-cssrule |
| 12 |
* |
| 13 |
* @property string $cssText |
| 14 |
* @property CSSRule|null $parentRule |
| 15 |
* @property CSSStyleSheet|null $parentStyleSheet |
| 16 |
* @property int $type |
| 17 |
* @phan-forbid-undeclared-magic-properties |
| 18 |
*/ |
| 19 |
interface CSSRule { |
| 20 |
/** |
| 21 |
* @return string |
| 22 |
*/ |
| 23 |
public function getCssText(): string; |
| 24 |
|
| 25 |
/** |
| 26 |
* @param string $val |
| 27 |
*/ |
| 28 |
public function setCssText( string $val ): void; |
| 29 |
|
| 30 |
/** |
| 31 |
* @return CSSRule|null |
| 32 |
*/ |
| 33 |
public function getParentRule(); |
| 34 |
|
| 35 |
/** |
| 36 |
* @return CSSStyleSheet|null |
| 37 |
*/ |
| 38 |
public function getParentStyleSheet(); |
| 39 |
|
| 40 |
/** |
| 41 |
* @return int |
| 42 |
*/ |
| 43 |
public function getType(): int; |
| 44 |
|
| 45 |
/** @var int */ |
| 46 |
public const STYLE_RULE = 1; |
| 47 |
|
| 48 |
/** @var int */ |
| 49 |
public const CHARSET_RULE = 2; |
| 50 |
|
| 51 |
/** @var int */ |
| 52 |
public const IMPORT_RULE = 3; |
| 53 |
|
| 54 |
/** @var int */ |
| 55 |
public const MEDIA_RULE = 4; |
| 56 |
|
| 57 |
/** @var int */ |
| 58 |
public const FONT_FACE_RULE = 5; |
| 59 |
|
| 60 |
/** @var int */ |
| 61 |
public const PAGE_RULE = 6; |
| 62 |
|
| 63 |
/** @var int */ |
| 64 |
public const MARGIN_RULE = 9; |
| 65 |
|
| 66 |
/** @var int */ |
| 67 |
public const NAMESPACE_RULE = 10; |
| 68 |
|
| 69 |
} |