Skip to content

css: do not add transition entries the declaration already lists - #38692

Closed
robobun wants to merge 8 commits into
mainfrom
farm/e66ba5e1/css-transition-prefix-dedupe
Closed

robobun wants to merge 8 commits into
mainfrom
farm/e66ba5e1/css-transition-prefix-dedupe

css: do not add transition entries the declaration already lists

472e58c
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Aug 14, 2026 in 21m 37s

Code review found 1 potential issue

Found 1 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 0
🟣 Pre-existing 1
Severity File:Line Issue
🟣 Pre-existing src/css/properties/transition.rs:551-557 Pre-existing: mask-box-image insertion misaligns durations/delays/timing with subsequent entries

Annotations

Check notice on line 557 in src/css/properties/transition.rs

See this annotation in the file changed.

@claude claude / Claude Code Review

Pre-existing: mask-box-image insertion misaligns durations/delays/timing with subsequent entries

Pre-existing (not introduced by this PR, and strictly mitigated by it): when the `-webkit-mask-box-image*` entry is inserted here, `durations`/`delays`/`timing_functions` in `flush` are not grown to match, so `get_transitions` cycles and shifts every subsequent entry — safari 15 + `transition: mask-border .5s, opacity .1s` comes out as `-webkit-mask-box-image .5s, mask-border .1s, opacity .5s`. The `LogicalPropertyId::Block`/`Inline` `replace()` arms (e.g. `inset-block` → two entries) have the s