Bug 110648
| Summary: | anonymous blocks don't inherit pseudo styles | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Shezan Baig <shezbaig.wk> |
| Component: | CSS | Assignee: | 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
The selection gaps of anonymous blocks are not using the selection background color specified in the css.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Shezan Baig
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
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
Blink and WebKit match behavior. Gecko does not.
I don't believe this illustrates a compatibility issue.