Closed Bug 1557182 Opened 6 years ago Closed 6 years ago

[webvtt] enable wpt '2_tracks.html' and '3_tracks.html'

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

In reference files, we should not use <br> for breaking the line, because <br> would take width as well, which would cause a tiny positioning difference.

Using Ahem can help to eliminate the unexpected graphic color difference caused by rendeing pipeline.

In addition, the font style should be set on the inner span, because that is the way how we applied ::cue on cue text.

<br> has 1 app unit width, which would push text 1 app unit left and cause the positioning difference.

We should use <div> to enforce them break line without having extra space in the line box.

No longer depends on: 1556581

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task

3_tracks.html would fail on the Windows on the try server [1], I guess that might be caused by tiny calculation error when we check whether the boxes are overlapped or not. I have added a fuzzy for those checking and am waiting for the result.

[1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=96ab969926e702a74047c8324d4d9f8c599854bb&selectedJob=250690810

When the check whether boxes are overlapping or box is placing out side the container boundary, we should use fuzzy for this checking if the difference is small enough to be ignored.

When two boxes just overlapped a little bit (like < 0.01 px), which user can't be aware of it and looks like just placing side by side, we acutally don't need to adjust box position again.

Otherwise, it would result in an obvious space between two boxes which makes it look more weird because the basic moving unit for adjusting boxes is the Bsize of the first line box.

In addition, adding fuzzy can also ensure rendering testing can be more robust, because on some platform the cues would overlap a really tiny amount of pixels and causes box moving up more than our expectation, which result in incorrect rendering comparasion.

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a2865f286873 part1 : use 'Ahem'. r=heycam https://hg.mozilla.org/integration/autoland/rev/042a06eeefec part2 : do not use <br> to generate line break in reference files. r=heycam https://hg.mozilla.org/integration/autoland/rev/6f3c271dd3a5 part3 : enable wpt '2_tracks.html' and '3_tracks.html'. r=heycam https://hg.mozilla.org/integration/autoland/rev/3b271a31eb8e part4 : add fuzzy for the boundary comparision. r=heycam
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/17445 for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: