I ran into the same problem and found two solutions.
Looking through the Modernizr download page , it looks like a βhiddenβ class is added when Modernizr checks and detects attribute support [hidden].
Just create a Modernizr assembly with discovery for the attribute [hidden].
, , CSS Bootstrap html.hidden - , , Modernizr , .