I just upgraded to Modernizr 7.x-3.5. It told me I needed to download a new copy of the script, which should include the css_boxsizing test. So I clicked the button, downloaded the recommended custom build and saved it to /sites/all/libraries/modernizr/modernizr.min.js. This is the only copy of the modernizr script in my libraries folder. The script header reads:

/*! modernizr 3.0.0 (Custom Build) | MIT *
 * http://modernizr.com/download/?-boxsizing !*/

No matter how many times I refresh the cache, or what I name that file, the Modernizer status always throws the error:

Modernizr Tests Tests are missing in current Modernizr build.
Certain tests requested by currently enabled modules and themes are not within the current Modernizr build. Go to the Modernizr settings page to download a new version of Modernizr. The tests that are missing are: css_boxsizing

However, when I load a page on my site and look at the code, I see that my modernizer script is loading and the boxsizing class appears in the html element, so some part of the module must recognize that the script is there. It's just confused.

CommentFileSizeAuthor
#3 Modernizr-detection.png64.22 KBjstoller
#2 2576457-1-regex-fix.patch602 bytesrupl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jstoller created an issue. See original summary.

rupl’s picture

Status: Active » Needs review
FileSize
602 bytes

Thanks for the thorough bug report! Yup, I missed one tiny char in our silly regex that reads out these tests.. They switched from a # to a ? in the build URL.

Can you test this patch and RTBC the issue before I commit? I want to make sure I get this right before cutting another release.

jstoller’s picture

FileSize
64.22 KB

It still seems to be doing something weird. See the image.

rupl’s picture

Did you specify the css_boxsizing test somewhere else in your code? I did a quick scan of all the modules that implement the drupal module's API and I couldn't find one that implements that test: #1914478: [meta] Provide Modernizr integration for other contrib modules

On a fresh drupal install my patch seems to work, so if you take one more look and can't find it I'll reclassify this as support and commit that patch.

rupl’s picture

Version: 7.x-3.5 » 7.x-3.x-dev
Category: Bug report » Support request
Status: Needs review » Postponed (maintainer needs more info)

Ok, fix has been pushed and the issue reclassified.

  • rupl committed ecce677 on 7.x-3.x
    Issue #2576457 by rupl, jstoller: Modernizr loads script, but doesn't...
jstoller’s picture

Category: Support request » Bug report
Status: Postponed (maintainer needs more info) » Fixed

It looks like my custom theme was requesting "css_boxsizing." That must have been the name of the test in an earlier version of Modernizr. Changing it to "boxsizing" fixes the problem.

rupl’s picture

Cool, good to hear. Thanks again for filing this, it was a small issue but rendered the admin config completely useless. 7.x-3.6 is published now so you can commit the latest version of the module to your codebase and it should all be back in order.

rupl’s picture

Version: 7.x-3.x-dev » 7.x-3.6

Setting proper version now that the tag exists.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.