2022-02-15 22:40:51 +03:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#import <CSS/CSSRule.idl>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#import <CSS/CSSRuleList.idl>
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#import <CSS/MediaList.idl>
							 | 
						
					
						
							
								
									
										
										
										
											2023-11-08 11:04:56 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#import <CSS/StyleSheet.idl>
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-07 16:45:09 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// https://drafts.csswg.org/cssom/#cssstylesheet
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								[Exposed=Window]
							 | 
						
					
						
							
								
									
										
										
										
											2021-03-08 11:22:18 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								interface CSSStyleSheet : StyleSheet {
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    constructor(optional CSSStyleSheetInit options = {});
							 | 
						
					
						
							
								
									
										
										
										
											2023-10-25 17:27:19 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    readonly attribute CSSRule? ownerRule;
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-29 19:41:46 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    [SameObject] readonly attribute CSSRuleList cssRules;
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-29 20:28:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    undefined deleteRule(unsigned long index);
							 | 
						
					
						
							
								
									
										
										
										
											2023-10-25 17:27:19 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Promise<CSSStyleSheet> replace(USVString text);
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    undefined replaceSync(USVString text);
							 | 
						
					
						
							
								
									
										
										
										
											2023-10-25 17:27:19 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    // https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    [SameObject, ImplementedAs=css_rules] readonly attribute CSSRuleList rules;
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
							 | 
						
					
						
							
								
									
										
										
										
											2024-02-24 07:46:59 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    undefined removeRule(optional unsigned long index);
							 | 
						
					
						
							
								
									
										
										
										
											2021-03-08 11:22:18 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							
								
									
										
										
										
											2023-10-25 17:27:19 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								dictionary CSSStyleSheetInit {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    DOMString baseURL = null;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    (MediaList or DOMString) media = "";
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    boolean disabled = false;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 |