mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	This is a bit under-specced, specifically there's no definition of CSSMarginDescriptors so I've gone with CSSStyleProperties for now. Gets us 17 WPT subtests.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			536 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			536 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * 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,
 | 
						|
    AtPage,
 | 
						|
    Margin,
 | 
						|
};
 | 
						|
RuleContext rule_context_type_for_rule(CSSRule::Type);
 | 
						|
RuleContext rule_context_type_for_at_rule(FlyString const&);
 | 
						|
 | 
						|
}
 |