mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Handle steps(x, start) like steps(x, jump-start)
This commit is contained in:
parent
672590c360
commit
cd5d8f4d95
Notes:
github-actions[bot]
2024-11-06 09:28:51 +00:00
Author: https://github.com/Gingeh
Commit: cd5d8f4d95
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2173
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 27 additions and 3 deletions
|
@ -342,7 +342,7 @@ double EasingStyleValue::Steps::evaluate_at(double input_progress, bool before_f
|
|||
// - jump-start,
|
||||
// - jump-both,
|
||||
// increment current step by one.
|
||||
if (position == Steps::Position::JumpStart || position == Steps::Position::JumpBoth)
|
||||
if (position == Steps::Position::JumpStart || position == Steps::Position::Start || position == Steps::Position::JumpBoth)
|
||||
current_step += 1;
|
||||
|
||||
// 3. If both of the following conditions are true:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue