mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 04:21:54 +00:00
LibWeb: Disallow default
as a keyframe name
This commit is contained in:
parent
64728aef6c
commit
39cef6eeb5
Notes:
github-actions[bot]
2025-06-14 21:57:11 +00:00
Author: https://github.com/tcl3
Commit: 39cef6eeb5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5090
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 71 additions and 1 deletions
|
@ -389,7 +389,7 @@ GC::Ptr<CSSKeyframesRule> Parser::convert_to_keyframes_rule(AtRule const& rule)
|
|||
return {};
|
||||
}
|
||||
|
||||
if (name_token.is(Token::Type::Ident) && (is_css_wide_keyword(name_token.ident()) || name_token.ident().equals_ignoring_ascii_case("none"sv))) {
|
||||
if (name_token.is(Token::Type::Ident) && (is_css_wide_keyword(name_token.ident()) || name_token.ident().is_one_of_ignoring_ascii_case("none"sv, "default"sv))) {
|
||||
dbgln_if(CSS_PARSER_DEBUG, "CSSParser: @keyframes rule name is invalid: {}; discarding.", name_token.ident());
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue