Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-box/inheritance.txt
Andreas Kling e068ff5a5d LibWeb: Always store ComputedProperties, even if no invalidations
Before this change, we'd skip storing the new ComputedProperties in
Element::recompute_style() if there was no invalidation needed.

This caused us to lose the information about which properties are
inherited and/or important (which is also carried by ComputedProperties,
but doesn't affect invalidation).

Consequently, we'd then fail to recompute inherited styles, since that
mechanism depends on this data.

The fix is simply to always store the new ComputedProperties.
2025-04-13 00:43:49 +02:00

30 lines
1.1 KiB
Plaintext

Harness status: OK
Found 24 tests
22 Pass
2 Fail
Pass Property clear has initial value none
Pass Property clear does not inherit
Pass Property float has initial value none
Pass Property float does not inherit
Pass Property margin-bottom has initial value 0px
Pass Property margin-bottom does not inherit
Pass Property margin-left has initial value 0px
Pass Property margin-left does not inherit
Pass Property margin-right has initial value 0px
Pass Property margin-right does not inherit
Pass Property margin-top has initial value 0px
Pass Property margin-top does not inherit
Fail Property margin-trim has initial value none
Fail Property margin-trim does not inherit
Pass Property padding-bottom has initial value 0px
Pass Property padding-bottom does not inherit
Pass Property padding-left has initial value 0px
Pass Property padding-left does not inherit
Pass Property padding-right has initial value 0px
Pass Property padding-right does not inherit
Pass Property padding-top has initial value 0px
Pass Property padding-top does not inherit
Pass Property visibility has initial value visible
Pass Property visibility inherits