Bug 105569
Summary: | WebVTT line breaks should try to make lines close to the same size | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> |
Component: | Media | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bfulgham, dino, eric.carlson, ian, silviapf, vcarbune, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 105496 | ||
Bug Blocks: |
Dean Jackson
From the WebVTT spec: "Regardless of the value of the 'white-space' property, any line breaks inserted by the user agent for the purposes of line wrapping must be placed so as to minimize Δ across each run of consecutive lines between preserved newlines in the source. Δ for a set of lines is defined as the sum over each line of the absolute of the difference between the line's length and the mean line length of the set."
e.g. avoid this:
Hello World How Are
You
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/12919735>
Dean Jackson
The obvious solution is:
Hello
World
How
Are
You
Kidding!
Ian 'Hixie' Hickson
Or:
|ello World How Are Yo|
:-)