Skip to content

[Bug]: check: a negative data-start hides a video_audio_double_source error #8132

Closed

Description

@zhengqiuyang

Describe the bug

video_audio_double_source misses a real duplicate-audio error when the <video> uses a negative data-start.

<div data-composition-id="c" data-duration="10">
  <video data-start="-5" data-duration="3" src="clip.mp4"></video>
  <audio data-start="0" data-duration="2" src="clip.mp4"></audio>
</div>

Expected Behavior

video_audio_double_source (error): the renderer clamps the video start to 0, so its window is 0..3; the audio window is 0..2; they overlap and both play clip.mp4.

Actual Behavior

No finding. mediaTimeWindow (packages/lint/src/utils.ts) parses data-start with a raw Number(), so the video window is computed as -5..-2 and mediaWindowsOverlap returns false.

A parser check confirms the divergence on main at 63c8f8e:

  • readClipTiming for the video: start: 0, duration: 3, end: 3
  • readClipTiming for the audio: start: 0, duration: 2, end: 2

Environment

  • main at 63c8f8e
  • Reproduced with lintHyperframeHtml; the regression test is in the PR

Activity

  1. added
    bug
    triage/ready
    difficulty/easy
    on Nov 18, 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