LibWeb: Reject CSS values with unprocessed tokens / extra semicolons

This commit is contained in:
Bastiaan van der Plaat 2025-05-01 13:04:32 +02:00 committed by Sam Atkins
parent b99f4872d1
commit 832bb978f5
Notes: github-actions[bot] 2025-05-02 10:11:03 +00:00
2 changed files with 4 additions and 5 deletions

View file

@ -370,7 +370,7 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue const>> Parser::parse_css_value
if (token.is(Token::Type::Semicolon)) {
unprocessed_tokens.reconsume_current_input_token();
break;
return ParseError::SyntaxError;
}
if (property_id != PropertyID::Custom) {