WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
110648
anonymous blocks don't inherit pseudo styles
https://bugs.webkit.org/show_bug.cgi?id=110648
Summary
anonymous blocks don't inherit pseudo styles
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug