Skip navigation
Now with dynamic auto-width using calc-size()!
0:00 / 0:25

Now with dynamic auto-width using calc-size()!

Una 🇺🇦

@Una88K followers

Visit on X
384 likesDownloadOriginal post

35,012 views

Now with dynamic auto-width using calc-size()! Enabling the animation of elements to auto height and width is planned for Chrome 129 🥳 (stable rollout starts in 2 weeks!) More content to come around this feature from our team soon 🙂

10 Comments

Comments from the original post on X (Twitter)

  • Mike Herchel's disembodied head's profile picture

    @mikeherchel

    Super excited for calc-size()! Any word on when ::details-content is going to be available in Chrome stable? I see it's working in Canary.

    5 likes

  • Una 🇺🇦's profile picture

    @Una

    The current plan is to land that this year, most likely next quarter!

    4 likes

  • Mike Herchel's disembodied head's profile picture

    @mikeherchel

    🤞🤞🤞

  • IanKDuffy's profile picture

    @IanKDuffy

    So can't wait for this functionality.

    1 like

  • 一丝's profile picture

    @yisibl

    The <datalist> element is about to be removed from Select.

    1 like

  • JD Solanki's profile picture

    @me_jd_solanki

    Is this alternative to starting-style for animating auto height. I guess this is better than starting-style. Short & Easy to understand.

  • Una 🇺🇦's profile picture

    @Una

    Starting-style doesn’t work with auto height, you’d still need calc-size(). Starting-style just lets you define pre-rendered styles. You don’t need it here bc this element is already in the DOM when the animation happens

    1 like

  • JD Solanki's profile picture

    @me_jd_solanki

    Wow! That's awesome. CSS is changing really fast.

  • Darryl Yeo 🌸's profile picture

    @darryl__yeo

    Can’t wait!!

  • Anthony Laflamme's profile picture

    @0x41_0x4C

    @emilkowalski new tricks for animations instead of using the bounding box use hooks ?