LibWeb/CSS: Update syntax comments for a couple of properties

Corresponds to:
3a2ac8d75c
fdc08f79a2

No code changes.
This commit is contained in:
Sam Atkins 2025-12-04 10:31:26 +00:00 committed by Tim Flynn
parent 9b4d9966da
commit 6b46bed970
Notes: github-actions[bot] 2025-12-04 13:38:49 +00:00
2 changed files with 3 additions and 2 deletions

View file

@ -1050,7 +1050,7 @@ RefPtr<StyleValue const> Parser::parse_counter_set_value(TokenStream<ComponentVa
// https://drafts.csswg.org/css-ui-4/#cursor
RefPtr<StyleValue const> Parser::parse_cursor_value(TokenStream<ComponentValue>& tokens)
{
// <cursor-image>#? <cursor-predefined>
// [<cursor-image>,]* <cursor-predefined>
// <cursor-image> = <url> <number>{2}?
// So, any number of custom cursor definitions, and then a mandatory cursor name keyword, all comma-separated.

View file

@ -2282,6 +2282,7 @@ RefPtr<StyleValue const> Parser::parse_color_mix_function(TokenStream<ComponentV
// color-mix() = color-mix( <color-interpolation-method> , [ <color> && <percentage [0,100]>? ]#)
// FIXME: Update color-mix to accept 1+ colors instead of exactly 2.
// FIXME: <color-interpolation-method> is optional in the current spec.
auto transaction = tokens.begin_transaction();
tokens.discard_whitespace();
@ -2529,7 +2530,7 @@ RefPtr<StyleValue const> Parser::parse_corner_shape_value(TokenStream<ComponentV
}
if (token.is_function("superellipse"sv)) {
// superellipse() = superellipse(<number [-∞,∞]> | infinity | -infinity)
// superellipse() = superellipse(<number> | infinity | -infinity)
auto const& function = token.function();
auto context_guard = push_temporary_value_parsing_context(FunctionContext { function.name });