Bug 183179 - CSS ::selection:window-inactive stroke-color and stroke-width are not applied to selected text in SVG
Summary: CSS ::selection:window-inactive stroke-color and stroke-width are not applied...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: EasyFix
Depends on:
Blocks:
 
Reported: 2018-02-27 14:20 PST by Daniel Bates
Modified: 2018-02-27 14:37 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2018-02-27 14:20:57 PST
Similar to the issue in bug #183178, we need to teach the SVGInlineTextBox::paint() to query RenderElement::selectionPseudoStyle() for styles of the ::selection pseudo element so that ::selection:window-inactive { ... } are applied to selected text when the page becomes deactivated. 

For completeness, SVGInlineTextBox::paint() calls RenderElement::getCachedPseudoStyle() at <http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp?rev=229031#L268>. But these styles never change when the page becomes deactivated.