2025-04-14 13:10:20 -03:00
|
|
|
/*
|
2026-03-27 08:57:30 -03:00
|
|
|
* Copyright (c) 2025-2026, Sam Atkins <sam@ladybird.org>
|
2025-04-14 13:10:20 -03:00
|
|
|
*
|
|
|
|
|
* 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,
|
2026-03-27 08:57:30 -03:00
|
|
|
AtContainer,
|
2026-01-30 09:03:29 -03:00
|
|
|
AtCounterStyle,
|
2025-04-14 13:10:20 -03:00
|
|
|
AtMedia,
|
|
|
|
|
AtFontFace,
|
2026-01-14 01:06:59 -03:00
|
|
|
AtFontFeatureValues,
|
|
|
|
|
FontFeatureValue,
|
2026-03-06 10:07:49 -03:00
|
|
|
AtFunction,
|
2025-04-14 13:10:20 -03:00
|
|
|
AtKeyframes,
|
|
|
|
|
Keyframe,
|
|
|
|
|
AtSupports,
|
|
|
|
|
SupportsCondition,
|
|
|
|
|
AtLayer,
|
|
|
|
|
AtProperty,
|
2025-05-13 08:17:41 -03:00
|
|
|
AtPage,
|
2025-05-15 07:48:56 -03:00
|
|
|
Margin,
|
2025-04-14 13:10:20 -03:00
|
|
|
};
|
|
|
|
|
RuleContext rule_context_type_for_rule(CSSRule::Type);
|
|
|
|
|
RuleContext rule_context_type_for_at_rule(FlyString const&);
|
|
|
|
|
|
|
|
|
|
}
|