- From: <bugzilla@jessica.w3.org>
- Date: Mon, 30 Apr 2012 09:58:29 +0000
- To: public-texttracks@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16889 Summary: Should collapse trailing spaces on each line in the rendering Product: TextTracks CG Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: WebVTT AssignedTo: ian@hixie.ch ReportedBy: simonp@opera.com QAContact: dave.null@w3.org CC: mike@w3.org, public-texttracks@w3.org The spec says to use CSS 'pre-wrap' behavior for WebVTT cues (except lines are balanced). However, this leaves a space at the end of each line [1], which looks bad. I think we should collapse spaces at the end of lines in WebVTT rendering. example: WEBVTT 00:00:00.000 --> 00:00:05.000 This is a long cue that will break on two lines. Will render as: line -2: "This is a long cue that " line -1: "will break on two lines." It would be better if the rendered result was line -2: "This is a long cue that" line -1: "will break on two lines." (i.e. with the space after "that" removed) [1] "If 'white-space' is set to 'pre' or 'pre-wrap', any sequence of spaces (U+0020) unbroken by an element boundary is treated as a sequence of non-breaking spaces. However, for 'pre-wrap', a line breaking opportunity exists at the end of the sequence." http://www.w3.org/TR/CSS21/text.html#white-space-model -- Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
Received on Monday, 30 April 2012 09:58:32 UTC