LibWeb/CSS: Adjust grammar definitions

Corresponds to:
e2903b127e
1b4ea44fc8
This commit is contained in:
Sam Atkins 2025-07-08 09:59:05 +01:00 committed by Tim Ledbetter
parent b87e01e304
commit d9aeffa302
Notes: github-actions[bot] 2025-07-08 09:26:02 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -2974,7 +2974,7 @@ RefPtr<CSSStyleValue const> Parser::parse_font_style_value(TokenStream<Component
RefPtr<CSSStyleValue const> Parser::parse_font_variation_settings_value(TokenStream<ComponentValue>& tokens) RefPtr<CSSStyleValue const> Parser::parse_font_variation_settings_value(TokenStream<ComponentValue>& tokens)
{ {
// https://drafts.csswg.org/css-fonts/#propdef-font-variation-settings // https://drafts.csswg.org/css-fonts/#propdef-font-variation-settings
// normal | [ <opentype-tag> <number>]# // normal | [ <opentype-tag> <number> ]#
// normal // normal
if (auto normal = parse_all_as_single_keyword_value(tokens, Keyword::Normal)) if (auto normal = parse_all_as_single_keyword_value(tokens, Keyword::Normal))

View file

@ -1705,7 +1705,7 @@ RefPtr<CSSStyleValue const> Parser::parse_color_function(TokenStream<ComponentVa
RefPtr<CSSStyleValue const> Parser::parse_color_mix_function(TokenStream<ComponentValue>& tokens) RefPtr<CSSStyleValue const> Parser::parse_color_mix_function(TokenStream<ComponentValue>& tokens)
{ {
auto parse_color_interpolation_method = [this](TokenStream<ComponentValue>& function_tokens) -> Optional<ColorMixStyleValue::ColorInterpolationMethod> { auto parse_color_interpolation_method = [this](TokenStream<ComponentValue>& function_tokens) -> Optional<ColorMixStyleValue::ColorInterpolationMethod> {
// <rectangular-color-space> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | xyz | xyz-d50 | xyz-d65 // <rectangular-color-space> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | <xyz-space>
// <polar-color-space> = hsl | hwb | lch | oklch // <polar-color-space> = hsl | hwb | lch | oklch
// <custom-color-space> = <dashed-ident> // <custom-color-space> = <dashed-ident>
// <hue-interpolation-method> = [ shorter | longer | increasing | decreasing ] hue // <hue-interpolation-method> = [ shorter | longer | increasing | decreasing ] hue