ausi / cq-prolyfill

Prolyfill for CSS Container Queries
https://au.si/css-container-element-queries
MIT License
565 stars 39 forks source link

Support new size values for width and height #30

Open ausi opened 8 years ago

ausi commented 8 years ago

Parent elements using width: fit-content should be skipped for example. Currently they can result in the circularity issue.

ausi commented 7 years ago

This should be postponed until more browsers support these keywords. Implementing it now would decrease performance (because it needs the original style of the element) with little to no benefit.

Code for cq-prolyfill.js:1064:

var originalStyle = getOriginalStyle(element, prop);

// max-content, min-content and fit-content including prefixed versions
if (originalStyle && originalStyle.substr(-8) === '-content') {
    return true;
}