W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

Re: [csswg-drafts] [css-transitions] Transition to height (or width) "auto" (#626)

From: Axel D. via GitHub <sysbot+gh@w3.org>
Date: Mon, 18 May 2020 23:19:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-630484457-1589843987-sysbot+gh@w3.org>
I'd like to add that transitions/animations on `auto` valued properties should also be triggered when content changes:


<!DOCTYPE html>

  <meta charset="UTF-8">
  <title>Replaced content transition</title>

  <style type="text/css">
      border: 2px solid #caa;
      background-color: antiquewhite;
      padding: 1em;
      margin: 2em auto;
      width: 80%;

      transition: height 1s;

<body onload="setTimeout(() => document.getElementById('replaceMe').src='b.png', 2000)">
  <div><img id="replaceMe" alt="" src="a.png" /></div>


GitHub Notification of comment by SetTrend
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/626#issuecomment-630484457 using your GitHub account
Received on Monday, 18 May 2020 23:19:49 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:06 UTC