Bug 263640

Summary: WebVTT Parser should treat negative percentages as invalid values
Product: WebKit Reporter: Kueno <kohei.ueno119>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>