Bug 183179
| Summary: | CSS ::selection:window-inactive stroke-color and stroke-width are not applied to selected text in SVG | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, hyatt, pvollan, sabouhallawa, simon.fraser, zalan, zimmermann |
| Priority: | P2 | Keywords: | EasyFix, GoodFirstBug |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Daniel Bates
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |