css-regions-polyfill
css-regions-polyfill copied to clipboard
Experimental CSS Regions polyfill written in JavaScript
document.querySelector("style") throws an error on IE 9. querySelector() should be supported and yet there is an error. Could be related to missing DOCTYPE declaration: http://msdn.microsoft.com/en-us/library/ie/cc288169(v=vs.85).aspx
Added logic to enable CSS regions to be initiated by a media query.
The algorithm should support DOM elements that have the height set as a CSS value rather than calculated based on children content. Right now the algorithm looks only at text...
Investigate using a smarter CSS parser like prefix free does (checking only where flow-from or flow-into is being called and altering them https://github.com/LeaVerou/prefixfree/blob/gh-pages/prefixfree.js) and make the parsing faster
A clean demo exemplifying the CSS Regions polyfill features. - basic css syntax - basic CSSOM features