mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
LibWeb: Keep view transition pseudo styles in sync with new element
This makes it so that view-transition pseudo-element styles are updated before returning them from window.getComputedStyle(). This is necessary because they could be outdated, in case JS has modified the styles of the elements they are trying to stay in sync with since last frame. The corresponding WPT test has not been imported, since it still fails for unrelated reasons.
This commit is contained in:
parent
98c7a011d4
commit
0989c3cdaf
Notes:
github-actions[bot]
2025-09-10 15:40:43 +00:00
Author: https://github.com/Psychpsyo
Commit: 0989c3cdaf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6124
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 7 additions and 4 deletions
|
@ -991,10 +991,6 @@ ErrorOr<void> ViewTransition::update_pseudo_element_styles()
|
|||
new_->m_content = captured_element->new_element->capture_the_image();
|
||||
}
|
||||
}
|
||||
|
||||
// This algorithm must be executed to update styles in user-agent origin if its effects can be observed by a web API.
|
||||
// FIXME: Find all the places where this is relevant.
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue