You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: check: a negative data-start hides the composition's derived duration and blocks the render #8031
bugSomething isn't workingdifficulty/easyLocalized change with a known approach, limited risk, and straightforward verification.triage/readyAccepted scope, current evidence, acceptance criteria, and validation path are recorded.
A clip authored with a negative data-start renders normally — readClipTiming clamps the start to zero — but the lint rule that derives a composition's length from its clips drops the clip, so a valid composition is reported as having no duration source at all.
root_composition_duration_derived warning: the root length is taken from its clips, at least 1s. That is what the renderer does: start clamps to 0, duration 1, end 1.
Actual Behavior
root_composition_missing_duration_source (error, blocks strict renders): "Root composition has no data-duration, no GSAP timeline... will fail with Composition has zero duration."
The cause is in deriveDurationFromClips (packages/lint/src/rules/composition.ts): data-start is read with a raw Number(), so -2 produces an end of -1; resolveCompositionDuration only counts positive ends, so the clip disappears and the composition looks duration-less.
A similar mismatch shows up at data-start="-0.5", where lint reports "at least 1.5s" while the parser renders 2s.
Environment
main at 00d03a4
Reproduction: lintHyperframeHtml on the HTML above, or the new test in the PR
bugSomething isn't workingdifficulty/easyLocalized change with a known approach, limited risk, and straightforward verification.triage/readyAccepted scope, current evidence, acceptance criteria, and validation path are recorded.
Activity