mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
LibWeb: Use correct style rule index in view transitions
This used to crash a lot of attempted view transitions, now it doesn't anymore.
This commit is contained in:
parent
5d9e51d675
commit
905e749575
Notes:
github-actions[bot]
2025-09-09 11:51:16 +00:00
Author: https://github.com/Psychpsyo
Commit: 905e749575
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6139
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 101 additions and 1 deletions
|
@ -526,7 +526,7 @@ void ViewTransition::setup_transition_pseudo_elements()
|
|||
transition_name, "transform", width, height, "backdrop_filter")),
|
||||
stylesheet->rules().length()));
|
||||
// FIXME: all the strings above should be the identically named variables, serialized somehow.
|
||||
captured_element->group_keyframes = as<CSS::CSSKeyframesRule>(stylesheet->css_rules()->item(0));
|
||||
captured_element->group_keyframes = as<CSS::CSSKeyframesRule>(stylesheet->css_rules()->item(index));
|
||||
|
||||
// 6. Set capturedElement’s group animation name rule to a new CSSStyleRule representing the
|
||||
// following CSS, and append it to document’s dynamic view transition style sheet:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue