CSS hack: Difference between revisions

Content deleted Content added
JavaScript polyfills: removed spam link, fixed lame failure to write properly
Line 121:
 
=== JavaScript polyfills ===
While JavaScript feature detection and <syntaxhighlight lang="CSS" inline>@supports</syntaxhighlight> rules can help to target browsers that require fallback functionality, they will not address bugs in specific browsers or enable that advanced functionality. [[Polyfill (programming)|Polyfills]], scripts that make behavior consistent across all browsers, can be used to add support for new CSS rules (for example, [[media queries]] in IE 8) as well as fix bugs in specific browsers (for example, [https://github.com/rodneyrehm/viewport-units-buggyfill fixing the implementation of viewport units in mobile Safari]). Since polyfills add or fix functionality in browsers that don'tdo not have it, they serve a different purpose than feature queries, but can be used in combination with them.
 
==See also==