This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://dev.w3.org/csswg/css-ruby/#rubypos This is needed to control the position of the ruby text. There's also ruby-merge and ruby-align, but one thing at a time... (Via private feedback from Dae Kim)
I'm not sure this will be enough to support most use cases. Consider the snippet: 00:00:10.000 --> 00:00:15.000 <ruby>Line 1<rt>ruby1</rt></ruby> <ruby>Line 2<rt>ruby2</rt></ruby> Whitelisting ruby-position would allow control per cue, but how would I apply "over" to <rt>ruby1</rt> and "under" to <rt>ruby2</rt>? Wouldn't we need two unique <rt> spans or allow rubies to be class references or have attributes?
You would have to assign classes in that case: 00:00:10.000 --> 00:00:15.000 <ruby>Line 1<rt.over>ruby1</rt></ruby> <ruby>Line 2<rt.under>ruby2</rt></ruby> The style that with ::cue(rt.over) { ruby-position: over; } ::cue(rt.under) { ruby-position: under; }
In addition to whitelisting ruby-position, should the wording also change in the VTT spec? Change: A WebVTT cue span start tag "rt" that disallows an annotation. To: A WebVTT cue span start tag "rt".
(In reply to Dae Kim from comment #3) > In addition to whitelisting ruby-position, should the wording also change in > the VTT spec? > > Change: > A WebVTT cue span start tag "rt" that disallows an annotation. > > To: > A WebVTT cue span start tag "rt". Apologies. Change to the spec should be: A WebVTT cue span start tag "rt" that requires annotation; ...
Note that annotations are for <v> and <lang> and the annotation is the part after a space, like <v Roger Bingham> or <lang en>. I believe all tag allow classes without any modification, but we'll have to look closer when fixing this.
ruby-position is not supported by any browser other than Firefox. It's a bit early to adopt IMHO.
(In reply to Silvia Pfeiffer from comment #6) > ruby-position is not supported by any browser other than Firefox. It's a bit > early to adopt IMHO. I can't speak for them BUT ... the largest implementer of WebVTT uses it for more than native browser support. They also have a global presence.
I'd be happy to add ruby-position to the whitelisted CSS unless browsers object to it.
ruby-position is also supported in WebKit as -webkit-ruby-position: [ before | after | inter-character ] (Filed https://bugs.webkit.org/show_bug.cgi?id=151306 to unprefix.)
https://github.com/w3c/webvtt/pull/263
For ruby-merge, I suggest WONTFIX since the same effect can be achieved with markup, which is shown in the examples in the css-ruby spec. (VTT only has <ruby> and <rt> anyway.) For ruby-align, I filed https://github.com/w3c/webvtt/issues/265