You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently upgraded the grunt-modernizr (1.0.2) and modernizr (2.8.3) versions to the latest stable builds in our development boilerplate that we use for all new projects. and I've noticed something odd.
First of all, the .hidden class was being applied to the <html> element as this is a utility helper class we have in our CSS. After digging around Google/issues I saw that this relates to one of Modernizr's tests, so after further reading I added...
"classPrefix": "mzr-", to the above config.
As a direct result of this, the replacement of no-js failed, and hidden was actually replaced with the mzr- prefix. End result looked like...
<html class="no-js mzr-">
So, I removed classPrefix from the grunt config and excluded the hidden test as you can see above.
The issue I now have is I'm unable to prefix any of the Modernizr classes added to the root <html> element without the no-js --> js switch failing.
Am I doing something wrong, or is this an actual bug?
P.S Happy to re-post in the main Modernizr repo. 👍
The text was updated successfully, but these errors were encountered:
hey @patrickkettner the hidden class is being successfully excluded via excludeTests, it's just that classPrefix usage breaks both the added classes themselves and the no-js switch.
I'll strip all other JS out of our development boilerplate and see what happens: though I don't believe we have any JS included by default that would interfere. Hopefully get back to you later today!
I've recently upgraded the
grunt-modernizr
(1.0.2) andmodernizr
(2.8.3) versions to the latest stable builds in our development boilerplate that we use for all new projects. and I've noticed something odd.Here is our
grunt-modernizr
partial:First of all, the .hidden class was being applied to the
<html>
element as this is a utility helper class we have in our CSS. After digging around Google/issues I saw that this relates to one of Modernizr's tests, so after further reading I added..."classPrefix": "mzr-",
to the above config.As a direct result of this, the replacement of
no-js
failed, andhidden
was actually replaced with themzr-
prefix. End result looked like...<html class="no-js mzr-">
So, I removed
classPrefix
from the grunt config and excluded thehidden
test as you can see above.The issue I now have is I'm unable to prefix any of the Modernizr classes added to the root
<html>
element without theno-js
-->js
switch failing.Am I doing something wrong, or is this an actual bug?
P.S Happy to re-post in the main Modernizr repo. 👍
The text was updated successfully, but these errors were encountered: