The next step is to make filters work when in a Worker.
The difficult part is parsing the filter string, which relies on the CSS parser. The CSS parser was not designed to be invoked off the main thread because style evaluation always happens on the main thread. We had a similar problem with evaluating color values off the main thread.
For colors we had to make CSSValuePool thread local (other option would have been to make it thread safe). https://codereview.chromium.org/1870503002/
For filters we will need to not support reference filters when in a worker since we do not have access to the DOM. This means that using the "url()" filter markup must fail silently.
Comment 1 by junov@chromium.org
, Apr 4 2016