mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Skip transitions for pseudo elements
Transitions are currently not implemented for pseudo elements which causes the transition to be applied to the "real"/"parent" element. When a transition adjusts width/height on a pseudo element this causes the real elements layout to break. As a quick fix we just skip doing transitions when they are against pseudo elements.
This commit is contained in:
parent
2fdf2b9215
commit
30f59cfe1a
Notes:
github-actions[bot]
2024-10-07 11:41:17 +00:00
Author: https://github.com/CarwynNelson
Commit: 30f59cfe1a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1660
1 changed files with 2 additions and 1 deletions
|
@ -1238,7 +1238,8 @@ static void compute_transitioned_properties(StyleProperties const& style, DOM::E
|
|||
void StyleComputer::start_needed_transitions(StyleProperties const& previous_style, StyleProperties& new_style, DOM::Element& element, Optional<Selector::PseudoElement::Type> pseudo_element) const
|
||||
{
|
||||
// FIXME: Implement transitions for pseudo-elements
|
||||
(void)pseudo_element;
|
||||
if (pseudo_element.has_value())
|
||||
return;
|
||||
|
||||
// https://drafts.csswg.org/css-transitions/#transition-combined-duration
|
||||
auto combined_duration = [](Animations::Animatable::TransitionAttributes const& transition_attributes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue