Bug #24066
closedIntegrate modernizr into the TYPO3 Backend
0%
Description
"Modernizr [1] is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.
Modernizr uses feature detection to test the current browser against upcoming features like rgba(), border-radius, CSS Transitions and many more. "
Yes, basically everything was said! - Contrary to browser detection, the used feature detection does not require us to distinguish between different browsers and versions, but rely on the CSS classes added to the <html> tag by modernizr's JavaScript tests.
- Modernizr is used by Twitter, American Eagle, Burger King, The Knot, Capital One, Posterous, NFL,...
- It is developed by Paul Irish, one of the jQuery developers and HTML5 Boilerplate
- Size of the JS file is 9.4k (uncompressed) / 3.6k (gzipped).
- Modernizr is dual-licensed under MIT & BSD license.
- You can run the detection for your browser [2]
- The discussion inside the Skin team can be found here [3]
- I suggest adding "/** @see modernizr.js */" to every CSS definition making use of the modernizr-classes to be later able to easily find all occurences, in case of modernizr will be rmoved one day.
- Attached file 16403_usage.diff brings the shadow to IE6-8 (but is not part of this RFC and will not be committed)
[1] http://www.modernizr.com
[2] http://modernizr.github.com/Modernizr/output.html
[3] http://forge.typo3.org/issues/10697
(issue imported from #M16403)
Files