mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 13:50:00 +00:00
LibWeb/CSS: Update syntax comments for a couple of properties
Corresponds to:3a2ac8d75cfdc08f79a2No code changes.
This commit is contained in:
parent
9b4d9966da
commit
6b46bed970
Notes:
github-actions[bot]
2025-12-04 13:38:49 +00:00
Author: https://github.com/AtkinsSJ
Commit: 6b46bed970
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7016
2 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue