[Webkit-unassigned] [Bug 110703] Multi-line WebVTT cues are not positioned correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 27 10:55:34 PST 2013


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





--- Comment #5 from Victor Carbune <vcarbune at chromium.org>  2013-02-27 10:57:58 PST ---
(In reply to comment #4)
> Setting 'padding' on -webkit-media-text-track-display causes the problem I am seeing. Try adding this to a page with a <track>:

Thanks! Took me a while to understand this (fairly simple) problem - it lies in
RenderTextTrackCue::isOutside(), because padding (or border, margin), increases
both horizontal and vertical sizes of the cue (thus the width is 100% +
padding pixels) and isOutside always returns true with such properties.

Due to the nature of the algorithm, if we allow padding and check only horizontal 
fitting in the parent container, the cue will be shifted upwards with multiples of line height (depending on the exact extra size besides the cue lines).

Given that padding isn't really supported as VTT selector property, but we can
set it via the pseudo-id, is the above described fix good enough? If there's a
specific use-case for this, maybe a bug should be filed against the spec.

-- 
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