mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

356K
active users

Want inline semitransparent text background with no overlap?

Here's how on @codepen
codepen.io/thebabydino/pen/gbO
(you can see the overlap problem and the desired result below)

The `filter` combines 2 `feColorMatrix` techniques:

1️⃣ using a channel as an alpha mask

2️⃣ solid fill

#CSS#SVG#filter

@patrick_h_lauke Wait, that's a slightly different problem and doesn't even require an SVG filter (like the semi-transparency overlap does). Here's a fork codepen.io/thebabydino/pen/ogN

codepen.ioSetting background to always be in the back...

@anatudor blend mode works in that case against white page background, but it's not quite a general approach for varying page backgrounds etc. just after some way of "merging" all backgrounds together as one unit there that sits behind all the text (and can then be opaque, or transparent, or whatever really). but yeah, can hack it for very specific controlled uses, sure...

@patrick_h_lauke You don't need a white page background. Refresh to see. In general, it works for any text that's super close to either white or black, regardless of the page backdrop. And with the SVG filter method I'm using in my transparency overlap demo, it can be made to work for any text/ highlight combo, like blue text + yellow highlight.