# Spoiler blur performs badly in Firefox and Android

**URL:** <https://meta.discourse.org/t/spoiler-blur-performs-badly-in-firefox-and-android/160401>\
**Category:** Feature\
**Created:** [10 augustus 2020 om 21:54 UTC](https://meta.discourse.org/t/spoiler-blur-performs-badly-in-firefox-and-android/160401 "2020-08-10T21:54:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [10 augustus 2020 om 22:11 UTC](https://meta.discourse.org/t/spoiler-blur-performs-badly-in-firefox-and-android/160401/3 "2020-08-10T22:11:30Z")

</div>

With CSS this should get what you described with a background that matches the text. Adding this to a theme component should override the plugin’s CSS… though it wouldn’t work for images in spoilers.

This would make the change in all browsers, you’d need to detect the user-agent in JS if you’d want to only target Firefox.

```css
.spoiler-blurred {
  filter: none;
  background: var(--primary); 
  color: var(--primary);
}

.discourse-no-touch .spoiler-blurred:hover {
  filter: none;
  /* you could add a different hover effect here */
}

.spoiled {
  background: transparent; 
}

```

It’s a shame to hear about the bad Firefox performance. We don’t officially support Firefox on Android, but it looks like it impacts Firefox everywhere. Maybe we should consider going back to our old method of using a `text-shadow` to create the blue instead of `filter`…

---

_[View the full topic](https://meta.discourse.org/t/spoiler-blur-performs-badly-in-firefox-and-android/160401)._
