Bug 110648

Summary: anonymous blocks don't inherit pseudo styles
Product: WebKit Reporter: Shezan Baig <shezbaig.wk>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham, koivisto
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jsfiddle.net/dNuVm/

Shezan Baig
Reported 2013-02-22 15:08:35 PST
The selection gaps of anonymous blocks are not using the selection background color specified in the css.
Attachments
Shezan Baig
Comment 1 2013-02-22 15:12:00 PST
My current approach to fixing this is to modify RenderObject::getUncachedPseudoStyle to return parent()->getCachedPseudoStyle if this is an anonymous renderer. Antti, do you think there there would be any unexpected side-effects with this approach?
Shezan Baig
Comment 2 2013-02-22 15:26:25 PST
Actually, this seems a bit dangerous. I'm going to go the less ambitious route and instead change RenderObject::selectionBackgroundColor and RenderObject::selectionColor to return the parent's selectionBackgroundColor() and selectionColor() if this is an anonymous renderer
Brent Fulgham
Comment 3 2022-07-13 14:10:44 PDT
Blink and WebKit match behavior. Gecko does not. I don't believe this illustrates a compatibility issue.
Note You need to log in before you can comment on or make changes to this bug.