Re: Writing direction RTL and width

Hi Kyle,

Yes, I think there's a bug somewhere in the size calculation - I've
had issues with this when implementing, too.
I've registered https://www.w3.org/Bugs/Public/show_bug.cgi?id=22016 -
feel free to add yourself to the bug to track it.

Regards,
Silvia.

On Sat, Apr 20, 2013 at 3:40 AM, Kyle Barnhart <kyle@barnhart.ca> wrote:
> If the writing direction is right-to-left, it appears that the a cue can go
> out of bounds.
>
> "If the text track cue writing direction is horizontal, the text track cue
> alignment is end, and direction is 'rtl'
> Let maximum size be the text track cue text position subtracted from 100."
> http://dev.w3.org/html5/webvtt/#cues-with-video
>
> "If the text track cue writing direction is horizontal, the text track cue
> alignment is end, and direction is 'rtl'
> Let x-position be the text track cue text position subtracted from 100."
> http://dev.w3.org/html5/webvtt/#cues-with-video
>
> For example, at position 44%, width should become 56%, and left 56%.
> For a video with width of 100px, this would result in a box from 56px to
> 112px.
>
> Now if the width is expanding left instead of right this would make sense
> (0px to 56px) but I cannot find anything that states RTL width expands left.
> It appears that width is always to the right of the left position.
>
> Thank you,
> Kyle Barnhart

Received on Monday, 13 May 2013 08:10:44 UTC