[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)
Tracking
()
| 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: hiddento the cue box, requiring implementations to clip unwrappable lines to the cue'ssize. The WebVTT rendering rules only applyoverflow: hiddento 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: hiddenfrom 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.
| Assignee | ||
Updated•9 days ago
|
| Assignee | ||
Comment 1•9 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123313
| Assignee | ||
Comment 2•9 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 7 tests
Status Summary
Firefox
PASS: 1
FAIL: 6
Chrome
FAIL: 7
Safari
PASS: 7
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/bold_object/bold_white-space_pre_wrapped.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/class_object/class_white-space_pre_wrapped.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/italic_object/italic_white-space_pre_wrapped.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/underline_object/underline_white-space_pre_wrapped.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/voice_object/voice_white-space_pre_wrapped.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS) - /webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/white-space_pre_wrapped.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:PASS)
Comment 4•8 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/80efefc085e9
https://hg.mozilla.org/mozilla-central/rev/b144d0f36943
Description
•