Bug 146569

Summary: Captions' highlights do not entirely cover their constituent text
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: NEW ---    
Severity: Normal CC: dino, eric.carlson, jonlee, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch simon.fraser: review-

Description Myles C. Maxfield 2015-07-02 18:15:42 PDT
Captions' highlights do not entirely cover their constituent text
Comment 1 Myles C. Maxfield 2015-07-02 18:26:57 PDT
Created attachment 256064 [details]
Patch
Comment 2 Myles C. Maxfield 2015-07-02 18:27:42 PDT
<rdar://problem/21498411>
Comment 3 Myles C. Maxfield 2015-07-02 18:29:31 PDT
Created attachment 256065 [details]
Patch
Comment 4 Simon Fraser (smfr) 2015-07-02 23:23:14 PDT
Comment on attachment 256065 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=256065&action=review

> Source/WebCore/ChangeLog:18
> +        fallback metrics of its contents. This property, however, requires that the
> +        span be turned into a div (which is fine because these elements are internal
> +        to WebKit).

Is this OK? Is there ever more than one on a line?
Comment 5 Myles C. Maxfield 2015-07-07 13:34:27 PDT
Comment on attachment 256065 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=256065&action=review

>> Source/WebCore/ChangeLog:18
>> +        to WebKit).
> 
> Is this OK? Is there ever more than one on a line?

There is never more than one in a row. See VTTCue::getDisplayTree().
Comment 6 Myles C. Maxfield 2015-07-07 14:43:03 PDT
This actually changes behavior if the text line-wraps.
Comment 7 Myles C. Maxfield 2015-07-07 14:50:16 PDT
Hyatt says that line-box-contain should work on inline elements. I need to figure out why it didn't seem to work for me earlier.
Comment 8 Simon Fraser (smfr) 2015-07-07 14:58:38 PDT
Comment on attachment 256065 [details]
Patch

r- then!
Comment 9 Myles C. Maxfield 2015-07-07 15:40:00 PDT
line-box-contain only grows the root line box. It doesn't grow the inlineflowboxes which are the things which paint the background.
Comment 10 Myles C. Maxfield 2015-07-07 15:42:42 PDT
hyatt says "honestly if you have a fix that works pretty well, i’d just leave this alone"