Skip to content

[Bug]: check: subcomposition_blanks_before_host invents a blank tail for a runtime start and mis-measures a negative start #8036

Closed

Description

@zhengqiuyang

Describe the bug

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.

<div data-composition-id="main" data-duration="20">
  <div class="clip" id="intro" data-start="0" data-duration="15"></div>
  <div data-composition-src="compositions/outro.html" data-start="intro + 0.5" data-duration="5"></div>
</div>

Expected Behavior

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

Activity

  1. added
    bug
    triage/ready
    difficulty/easy
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdifficulty/easytriage/ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions