Bug 263640 - WebVTT Parser should treat negative percentages as invalid values
Summary: WebVTT Parser should treat negative percentages as invalid values
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-25 01:57 PDT by Kueno
Modified: 2023-10-27 20:39 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kueno 2023-10-25 01:57:14 PDT
According to the WebVTT specification, percentage values must be in the range of 0 to 100, and negative percentages are not valid. https://www.w3.org/TR/webvtt1/#webvtt-percentage

The following WPTs are failing due to this issue:
https://wpt.fyi/results/webvtt/parsing/file-parsing/tests/regions-regionanchor.html?label=experimental&label=master&aligned
https://wpt.fyi/results/webvtt/parsing/file-parsing/tests/regions-viewportanchor.html?label=experimental&label=master&aligned
Comment 1 Kueno 2023-10-25 01:58:03 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19527
Comment 2 EWS 2023-10-27 20:38:15 PDT
Committed 269882@main (6c997a688fcd): <https://commits.webkit.org/269882@main>

Reviewed commits have been landed. Closing PR #19527 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-10-27 20:39:12 PDT
<rdar://problem/117615681>