Bug 181305 - SVG text with filter not painted property when there is a selection and visibility is toggled
Summary: SVG text with filter not painted property when there is a selection and visib...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-04 13:24 PST by Joseph Pecoraro
Modified: 2018-01-04 15:13 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2018-01-04 13:24:12 PST
SVG text with filter not painted property when there is a selection and visibility is toggled

Steps to Reproduce:
1. Inspect <https://cloud.netlifyusercontent.com/assets/344dbf88-fdf9-42bb-adb4-46f01eedd629/e43727eb-d265-4aec-9bbe-b803b3c0a367/splash-svg.html>
2. Run the following snippet in the console to toggle the visibility of the text every second (it will blink on and off every second)

setInterval(() => {
    let elem = document.querySelector(".filtered");
    if (elem.style.visibility === "hidden")
        elem.style.visibility = "";
    else
        elem.style.visibility = "hidden";
}, 1000);

3. Select part of the text, like the "a" in "splash"
  => When the text tries to re-appear nothing is painted but the selection box

Compare to behavior without a selection.