Skip to content

Commit

Permalink
fixup! LibWeb: Implement counter-[increment,reset,set] properties
Browse files Browse the repository at this point in the history
  • Loading branch information
AtkinsSJ committed Jul 25, 2024
1 parent d23a311 commit 8ac3472
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3021,12 +3021,13 @@ RefPtr<StyleValue> Parser::parse_counter_definitions_value(TokenStream<Component
Vector<CounterDefinition> counter_definitions;
while (tokens.has_next_token()) {
auto per_item_transaction = tokens.begin_transaction();
CounterDefinition definition;
CounterDefinition definition {};

// <counter-name> | <reversed-counter-name>
auto& token = tokens.next_token();
if (token.is(Token::Type::Ident)) {
definition.name = token.token().ident();
definition.is_reversed = false;
} else if (allow_reversed == AllowReversed::Yes && token.is_function("reversed"sv)) {
TokenStream function_tokens { token.function().values() };
function_tokens.skip_whitespace();
Expand Down

0 comments on commit 8ac3472

Please sign in to comment.