japgolly / scalacss

Super type-safe CSS for Scala and Scala.JS.
https://japgolly.github.io/scalacss/book
Apache License 2.0
338 stars 44 forks source link

Class name generation and ad-block #358

Open kshaa opened 1 year ago

kshaa commented 1 year ago

Class name generation in production mode produces minified class names which are sort as follows:

._a0
._a1
etc

It's possible for an ._ads class name to be generated and in result many browser ad-block plugins will apply an injected display: none stylesheet thereby hiding content. The content isn't an ad, but the minified class name makes ad-block think otherwise.

P.S. I don't have any steps to reproduce (as I noticed this in a private project) and also not sure if this can be really even be considered a bug in scalacss.