mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibWeb/CSS: Adjust grammar definitions
Corresponds to:e2903b127e
1b4ea44fc8
This commit is contained in:
parent
b87e01e304
commit
d9aeffa302
Notes:
github-actions[bot]
2025-07-08 09:26:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: d9aeffa302
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5347
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue