Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C-Info1898y>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. -
existas1278yI 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.
-
arantr22128y@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...
-
gnrfz3188yModernizr does this to support CSS styles based in the browser's capabilities
( http://modernizr.com/docs/...) -
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.
-
Magento has a css class "fieldset" for fieldsets and somewhere in the template is a string <span class=".button">
What do you think about this?
This is actually from one of our client's production sites...
undefined
classsoup
classy?
pollution