Closed Bug 2095522 Opened 9 days ago Closed 8 days ago

[wpt-sync] Sync PR 65122 - [webvtt] Don't clip cue text to the cue box in white-space: pre refs

Categories

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

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 65122 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/65122
Details from upstream follow.

Jer Noble <jer.noble@apple.com> wrote:

[webvtt] Don't clip cue text to the cue box in white-space: pre refs

The white-space_pre_wrapped reference files applied overflow: hidden to the cue box, requiring implementations to clip unwrappable lines to the cue's size. The WebVTT rendering rules only apply overflow: hidden to region boxes, not to cue boxes, so this behavior was not required by the spec.

The Timed Text WG discussed this in w3c/webvtt#551 and resolved that the spec is correct as written: implementations should show as much text as possible, and avoid text overlap rather than cue box overlap.

Move overflow: hidden from the cue box to the video box in the affected references, so overflowing text extends past the cue box but is still clipped at the video's bounds. This matches the existing white-space_nowrap references.

Fixes: https://github.com/w3c/webvtt/issues/551

Component: web-platform-tests → Audio/Video: Playback
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.