diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index 90e704e7a0..ab89e724cb 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -5327,7 +5327,7 @@ Optional Parser::parse_a_n_plus_b_patt auto& second_value = values.next_token(); if (is_signless_integer(second_value)) { int a = first_value.token().dimension_value_int(); - int b = -values.next_token().token().to_integer(); + int b = -second_value.token().to_integer(); transaction.commit(); return Selector::SimpleSelector::ANPlusBPattern { a, b }; }