mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
When we have an unresolved value for a shorthand (e.g. `border-style: var(--border-style)`, `keyframe_values` will contain an `UnresolvedStyleValue` for the shorthand and `PendingSubstitutionStyleValue`s for each of it's longhands. When we come across the shorthand's `UnresolvedStyleValue` we will resolve the value and set all of the relevant longhands. If the longhand's `PendingSubstitutionStyleValue` was processed after (which isn't always the case as the iteration order depends on a HashMap) would overwrite the correctly resolved longhand. To avoid this we just skip any `PendingSubstitutionStyleValue`s we come across and rely on the resolution of the shorthand to set those properties. Resolves a crash @tcl3 was experiencing when adding a new "border-image-repeat" property.
158 KiB
158 KiB