From the spec: Text runs must be wrapped according to the CSS line-wrapping rules, with the following additional constraints: Regardless of the value of the 'white-space' property, lines must be wrapped at the edge of their containing blocks, even if doing so requires splitting a word where there is no line breaking opportunity. (Thus, normally text wraps as needed, but if there is a particularly long word, it does not overflow as it normally would in CSS, it is instead forcibly wrapped at the box's edge.) 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. I'm not sure we'll be able to do the latter part (nor what the benefit is).
<rdar://problem/12915747>
<rdar://problem/12915748>
Ignore those two radars. The real one is <rdar://problem/12530021>
Created attachment 180277 [details] Patch
Comment on attachment 180277 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180277&action=review > LayoutTests/media/track/captions-webvtt/long-word.vtt:9 > +mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm Yummy caption :-)
Committed r138282: <http://trac.webkit.org/changeset/138282>
Re the wrapping, the benefit is it avoids cues wrapping like this: Hello World How Are You ...which is hard to read.
(In reply to comment #7) > Re the wrapping, the benefit is it avoids cues wrapping like this: > > Hello World How Are > You > > ...which is hard to read. Got it. I had a suspicion that is what the specification text meant. This is something we'll have to add to our layout code. I'll open a followup.