Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding interpolate-size: allow-keywords; to :root #512

Open
argyleink opened this issue Aug 22, 2024 · 1 comment
Open

Consider adding interpolate-size: allow-keywords; to :root #512

argyleink opened this issue Aug 22, 2024 · 1 comment
Assignees
Labels
question Further information is requested to be explored

Comments

@argyleink
Copy link
Owner

No description provided.

@argyleink argyleink added question Further information is requested to be explored labels Aug 22, 2024
@argyleink argyleink self-assigned this Aug 22, 2024
@argyleink
Copy link
Owner Author

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 */
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested to be explored
Projects
None yet
Development

No branches or pull requests

1 participant