mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-29 14:32:55 +00:00
LibWeb: Reject invalid background-position-*
property values
This commit is contained in:
parent
764b80a1cc
commit
dc58c11217
Notes:
github-actions[bot]
2025-03-14 15:09:22 +00:00
Author: https://github.com/tcl3
Commit: dc58c11217
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3916
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 80 additions and 0 deletions
|
@ -1363,6 +1363,8 @@ RefPtr<CSSStyleValue> Parser::parse_single_background_position_x_or_y_value(Toke
|
|||
transaction.commit();
|
||||
return EdgeStyleValue::create(relative_edge, {});
|
||||
}
|
||||
if (value->is_keyword())
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue