LibWeb: Handle steps(x, start) like steps(x, jump-start)

This commit is contained in:
Gingeh 2024-11-05 22:33:27 +11:00 committed by Sam Atkins
commit cd5d8f4d95
Notes: github-actions[bot] 2024-11-06 09:28:51 +00:00
3 changed files with 27 additions and 3 deletions

View file

@ -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: