- From: Victor Carbune <victor.carbune@gmail.com>
- Date: Thu, 19 Apr 2012 02:41:20 +0300
- To: public-texttracks@w3.org
Hello everyone, I'm having trouble understanding the correlation between the *maximum size*, the *cue alignment* and text position. I'm sorry if I'm missing something really obvious. According to these definitions, 1) A WebVTT alignment cue setting configures the alignment of the text *within the cue* 2) A WebVTT text position cue setting configures the position of the text in the direction orthogonal to the WebVTT line position cue setting. For horizontal cues, this is the horizontal position. I have the following scenario: - One cue with two lines of text in the top left corner (implying text position = 0%) - The text within the cue should be centered (implying cue alignment = middle) Now, according to the computational step, 3.5.10.5) Determine the value of maximum size for cue as per the appropriate rules from the following list: [...] If the text track cue alignment is middle, the text track cue text position is less than or equal to 50 Let maximum size be the text track cue text position multiplied by two. [...] We get the maximum size = 2 * (text position) = 0 Then later, 3.5.10.6) sets size to min(cueSize, maximumSize), which is used 3.5.10.7) to set the 'width' to 'size vw', which is the actual CSS width of 0vw. I understand the intention of the spec, probably to have maximum size set to the remaining width from the text position, but what am I mis-reading? Thank you, Victor
Received on Wednesday, 18 April 2012 23:42:10 UTC