| 
									
										
										
										
											2025-04-14 17:10:20 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2025, Sam Atkins <sam@ladybird.org> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <AK/FlyString.h>
 | 
					
						
							|  |  |  | #include <LibWeb/CSS/CSSRule.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::CSS::Parser { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | enum class RuleContext : u8 { | 
					
						
							|  |  |  |     Unknown, | 
					
						
							|  |  |  |     Style, | 
					
						
							|  |  |  |     AtMedia, | 
					
						
							|  |  |  |     AtFontFace, | 
					
						
							|  |  |  |     AtKeyframes, | 
					
						
							|  |  |  |     Keyframe, | 
					
						
							|  |  |  |     AtSupports, | 
					
						
							|  |  |  |     SupportsCondition, | 
					
						
							|  |  |  |     AtLayer, | 
					
						
							|  |  |  |     AtProperty, | 
					
						
							| 
									
										
										
										
											2025-05-13 12:17:41 +01:00
										 |  |  |     AtPage, | 
					
						
							| 
									
										
										
										
											2025-05-15 11:48:56 +01:00
										 |  |  |     Margin, | 
					
						
							| 
									
										
										
										
											2025-04-14 17:10:20 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | RuleContext rule_context_type_for_rule(CSSRule::Type); | 
					
						
							|  |  |  | RuleContext rule_context_type_for_at_rule(FlyString const&); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |