Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | // AUTOMATICALLY GENERATED. DO NOT EDIT. |
4 | // Use `composer build` to regenerate. |
5 | |
6 | namespace Wikimedia\IDLeDOM; |
7 | |
8 | /** |
9 | * CSSStyleSheet |
10 | * |
11 | * @see https://dom.spec.whatwg.org/#interface-cssstylesheet |
12 | * |
13 | * @property string $type |
14 | * @property ?string $href |
15 | * @property Element|ProcessingInstruction|null $ownerNode |
16 | * @property CSSStyleSheet|null $parentStyleSheet |
17 | * @property ?string $title |
18 | * @property MediaList $media |
19 | * @property bool $disabled |
20 | * @property CSSRule|null $ownerRule |
21 | * @property CSSRuleList $cssRules |
22 | * @property CSSRuleList $rules |
23 | * @phan-forbid-undeclared-magic-properties |
24 | */ |
25 | interface CSSStyleSheet extends StyleSheet { |
26 | // Direct parent: StyleSheet |
27 | |
28 | /** |
29 | * @return CSSRule|null |
30 | */ |
31 | public function getOwnerRule(); |
32 | |
33 | /** |
34 | * @return CSSRuleList |
35 | */ |
36 | public function getCssRules(); |
37 | |
38 | /** |
39 | * @param string $rule |
40 | * @param int $index |
41 | * @return int |
42 | */ |
43 | public function insertRule( string $rule, int $index = 0 ): int; |
44 | |
45 | /** |
46 | * @param int $index |
47 | * @return void |
48 | */ |
49 | public function deleteRule( int $index ): void; |
50 | |
51 | /** |
52 | * @param string $text |
53 | * @return void |
54 | */ |
55 | public function replaceSync( string $text ): void; |
56 | |
57 | /** |
58 | * @return CSSRuleList |
59 | */ |
60 | public function getRules(); |
61 | |
62 | /** |
63 | * @param string $selector |
64 | * @param string $style |
65 | * @param ?int $index |
66 | * @return int |
67 | */ |
68 | public function addRule( string $selector = 'undefined', string $style = 'undefined', ?int $index = null ): int; |
69 | |
70 | /** |
71 | * @param int $index |
72 | * @return void |
73 | */ |
74 | public function removeRule( int $index = 0 ): void; |
75 | |
76 | } |