argyleink/open-props

Consider adding `interpolate-size: allow-keywords;` to `:root`

Opened this issue · 1 comments

Consider adding `interpolate-size: allow-keywords;` to `:root`

https://developer.chrome.com/docs/css-ui/animate-to-height-auto/

also add animated details

@supports (interpolate-size: allow-keywords) {
    :root {
        interpolate-size: allow-keywords;
    }
    
    details {
        transition: height 0.5s ease;
        height: 2.5rem;
        
        &[open] {
            height: auto;
            overflow: clip; /* Clip off contents while animating */
        }
    }
}