Skip to content

WebVTT rendering test seems to calculate incorrect x-position of cue in ref file #5

@danae404

Description

@danae404

The tests are dom_override_cue_align_position_line_size.html and dom_override_cue_align_position_line_size_while_paused.html.

In the real vtt file, the cue is styled in javascript:
c.align = 'start';
c.position = 80;
c.line = 0;
c.size = 20;
c.text = 'There is nothing to see here people, move on';

In the ref file, the cue is styled as:
.cue {
position: absolute;
top: 0;
right: 51.2px;
width: 64px;
text-align: left
}

The actual VTT cue is rendered to the right of the fake VTT cue. I think right:51.2px should be replaced with left:256px (the equivalent of 80vw).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions