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: subcomposition_blanks_before_host invents a blank tail for a runtime start and mis-measures a negative start #8036
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.
subcomposition_blanks_before_host measures a mount with a raw Number() on data-start/data-duration, so a mount whose start resolves at runtime is assumed to start at 0 and gets a blank-tail warning that may not exist.
No subcomposition_blanks_before_host: the mount starts at intro + 0.5, so at runtime it runs 15.5s → 20.5s and covers the host. Its start is not statically knowable, so this rule should skip it.
Actual Behavior
Number("intro + 0.5") is NaN, which the rule coerces to 0, so it reports:
"<div> sub-composition ends at 5s but the composition runs to 20s, so its slot will be blank for ~15s."
fixHint: "Set this sub-composition's data-duration to 20"
Both are wrong for this composition.
The same raw parse also mis-measures a negative start. With a host of 10s and a mount at data-start="-2" + data-duration="3", the renderer clamps the start to 0 (end 3, gap 7, suggested duration 10), while the rule reports a gap of 9s and suggests 12 — a value larger than the host.
Environment
main at b6e1e8d
lintHyperframeHtml on the HTML above; regression tests are 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