6
arantr
8y

What do you think about this?
This is actually from one of our client's production sites...

Comments
  • 1
    Oh boy..
  • 1
    >setting all those classes for a single-occurrence tag
    Instead of doing a html{...}

    I bet they're not even used on the rest of the page.
  • 1
    I think this is all done by a js snippet called Conditionizr, correct me if im wrong. It analyses your browser and adds some classes to the html to represent capabilities of ur browser.
  • 0
    @C-Info Yeah. Don't think they are actually used at all. And I'm too scared to take a look at the CSS files...
  • 0
    @existas Oh, actually that sounds like it could be true. I'm not sure
  • 6
    Modernizr does this to support CSS styles based in the browser's capabilities
    ( http://modernizr.com/docs/...)
  • 1
    Yup it's auto generated from the Modernizr.js shim to support older browsers or newer feature and provide targets (added classes) in the html element to properly fallback if there isn't support for such features.
  • 0
    Thanks. Learned something new today then :)
  • 0
    They should do a custom build that just includes the tests they need.
  • 0
    Magento has a css class "fieldset" for fieldsets and somewhere in the template is a string <span class=".button">
Add Comment