mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Favour !important property values over animated values
This commit is contained in:
parent
c8f345356e
commit
76dadd45d6
Notes:
github-actions[bot]
2025-10-27 09:52:58 +00:00
Author: https://github.com/Calme1709
Commit: 76dadd45d6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6590
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 159 additions and 1 deletions
|
|
@ -169,7 +169,8 @@ StyleValue const& ComputedProperties::property(PropertyID property_id, WithAnima
|
|||
{
|
||||
VERIFY(property_id >= first_longhand_property_id && property_id <= last_longhand_property_id);
|
||||
|
||||
if (return_animated_value == WithAnimationsApplied::Yes) {
|
||||
// Important properties override animated properties
|
||||
if (!is_property_important(property_id) && return_animated_value == WithAnimationsApplied::Yes) {
|
||||
if (auto animated_value = m_animated_property_values.get(property_id); animated_value.has_value())
|
||||
return *animated_value.value();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue