Bug 41040

Summary: :before/:after content should not become part of a ruby base
Product: WebKit Reporter: Roland Steiner <rolandsteiner>
Component: Layout and RenderingAssignee: Roland Steiner <rolandsteiner>
Status: RESOLVED FIXED    
Severity: Normal CC: rolandsteiner
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 40895    
Attachments:
Description Flags
test case
none
patch - explicitly handle generated content
none
patch - explicitly handle generated content (skip on gtk & qt)
none
Patch hyatt: review+

Description Roland Steiner 2010-06-22 21:44:32 PDT
Created attachment 59475 [details]
test case

Text content generated by :before and :after selectors should not become part of any annotated ruby base. 
I.e., for <ruby>base<rt>text</rt></ruby>, "text" should annotate only/exatly "base", regardless whether there is additional :before or :after content.

Added a test case.
Comment 1 Roland Steiner 2010-07-08 01:11:57 PDT
Created attachment 60847 [details]
patch - explicitly handle generated content
Comment 2 Roland Steiner 2010-07-08 19:40:43 PDT
Created attachment 60998 [details]
patch - explicitly handle generated content (skip on gtk & qt)
Comment 3 Roland Steiner 2010-07-08 21:58:53 PDT
Addendum to patch: No Windows baseline for the new test yet.

(Also, please note that I will be away for the next 2 weeks on vacation and can't respond immediately to reviews and queries.)
Comment 4 Roland Steiner 2010-09-03 01:05:30 PDT
Created attachment 66477 [details]
Patch
Comment 5 Roland Steiner 2010-09-03 01:07:46 PDT
Uploaded a new patch that subsumes the fix from https://bugs.webkit.org/show_bug.cgi?id=43722. Since this changes the code that was added by that patch I think I should request a new review.

Also, extended the layout test from 43722 to also test for floated ruby elements (making them block elements) and adding a similar test for :after content.
Comment 6 Roland Steiner 2010-10-13 02:15:28 PDT
Committed as WK r69642.