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 have selected a bunch of feature tests, some sync some async. However only the CSS classes of async tests end up on the html tag. Seems like the result of sync tests have been overridden.
How to Reproduce
Download Modernizr 3.11.8 from Github and install dependencies using npm install.
Once all tests have been executed the html tag only has ' transferables datauri datauri-over32kb no-blobworkers' applied (with a single preceded white space) which are the feature tests that run async.
Expected behavior
All css classes should end up on html tag
The text was updated successfully, but these errors were encountered:
Looks like because I removed all options (since I thought only code required by feature checks would then be included in the final output) the final call to setClasses(classes) after calling the testRunner call was missing in the final JS output.
It basically looked like
// Run each testtestRunner();deleteModernizrProto.addTest;deleteModernizrProto.addAsyncTest;
even though the setClasses method itself was present in the final JS output.
Adding setClasses to the options array fixed that issue and the output now looks like
// Run each testtestRunner();// Remove the "no-js" class if it existssetClasses(classes);deleteModernizrProto.addTest;deleteModernizrProto.addAsyncTest;
So to be on the save spot I now include all options except html5shiv and html5printshiv.
Leaving the bug open since it might be unexpected behavior. Feel free to close it, if it is not.
Type of bug
Modernizr error
Describe the bug
I have selected a bunch of feature tests, some sync some async. However only the CSS classes of async tests end up on the html tag. Seems like the result of sync tests have been overridden.
How to Reproduce
Download Modernizr 3.11.8 from Github and install dependencies using npm install.
config:
Once all tests have been executed the html tag only has
' transferables datauri datauri-over32kb no-blobworkers'
applied (with a single preceded white space) which are the feature tests that run async.Expected behavior
All css classes should end up on html tag
The text was updated successfully, but these errors were encountered: