[Webkit-unassigned] [Bug 135820] New: More adjustments to css width calculations of cue boxes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 11 16:29:41 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135820

           Summary: More adjustments to css width calculations of cue
                    boxes
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: roger_fong at apple.com
                CC: eric.carlson at apple.com, bfulgham at webkit.org,
                    roger_fong at apple.com


<rdar://problem/17961164>

Two more issues I neglected to fix:

First off the multiplier calculations are wrong since they are based off a default font size of 10px which is not actually what we use. We use a percentage of the video size as specified in CaptionUserPreferences.

The second issue is that for center aligned text, the cue box is offset from center after adjusting the width.
This is because when we specify center alignment, what happens is that we actually calculate the left/top css value such that the cue looks centered.
Thus we also need to adjust the left/top property value (by the difference in width / 2) if we're not centered such that the box remained in the center.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list