Skip to content

Commit 6b46bed

Browse files
AtkinsSJtrflynn89
authored andcommitted
LibWeb/CSS: Update syntax comments for a couple of properties
Corresponds to: w3c/csswg-drafts@3a2ac8d w3c/csswg-drafts@fdc08f7 No code changes.
1 parent 9b4d996 commit 6b46bed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ RefPtr<StyleValue const> Parser::parse_counter_set_value(TokenStream<ComponentVa
10501050
// https://drafts.csswg.org/css-ui-4/#cursor
10511051
RefPtr<StyleValue const> Parser::parse_cursor_value(TokenStream<ComponentValue>& tokens)
10521052
{
1053-
// <cursor-image>#? <cursor-predefined>
1053+
// [<cursor-image>,]* <cursor-predefined>
10541054
// <cursor-image> = <url> <number>{2}?
10551055
// So, any number of custom cursor definitions, and then a mandatory cursor name keyword, all comma-separated.
10561056

Libraries/LibWeb/CSS/Parser/ValueParsing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,7 @@ RefPtr<StyleValue const> Parser::parse_color_mix_function(TokenStream<ComponentV
22822282

22832283
// color-mix() = color-mix( <color-interpolation-method> , [ <color> && <percentage [0,100]>? ]#)
22842284
// FIXME: Update color-mix to accept 1+ colors instead of exactly 2.
2285+
// FIXME: <color-interpolation-method> is optional in the current spec.
22852286
auto transaction = tokens.begin_transaction();
22862287
tokens.discard_whitespace();
22872288

@@ -2529,7 +2530,7 @@ RefPtr<StyleValue const> Parser::parse_corner_shape_value(TokenStream<ComponentV
25292530
}
25302531

25312532
if (token.is_function("superellipse"sv)) {
2532-
// superellipse() = superellipse(<number [-∞,∞]> | infinity | -infinity)
2533+
// superellipse() = superellipse(<number> | infinity | -infinity)
25332534
auto const& function = token.function();
25342535

25352536
auto context_guard = push_temporary_value_parsing_context(FunctionContext { function.name });

0 commit comments

Comments
 (0)