[Bug 14575] <track> The computed x-position should use the computed size when aligning - not 100

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14575

Fredrik Söderquist <fs@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fs@opera.com
            Summary|The computed x-position     |<track> The computed
                   |should use the computed     |x-position should use the
                   |size when aligning - not    |computed size when aligning
                   |100                         |- not 100

--- Comment #1 from Fredrik Söderquist <fs@opera.com> 2011-10-27 15:42:09 UTC ---
Section 15.4.2.1, step 10.8:

"If the text track cue writing direction is horizontal, the text track cue 
alignment is end, and direction is 'ltr'
...

Let x-position be the text track cue text position subtracted from 100."

Considering an example with text position 75, size 100, alignment 'end',
writing direction 'horizontal' and direction 'ltr':

Step 5 computes 'maximum size' as 75.
Step 6 computes 'size' as 75.
Step 8 computes 'x-position' as 100 - 75 = 25

---

I would've expected 'x-position' to be computed to 0 - i.e, 'text position' -
'size' - which seems more in line with for instance the handling of 'middle'.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 27 October 2011 15:42:18 UTC