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

I'd like to add that transitions/animations on `auto` valued properties should also be triggered when content changes:

<hr/>

```html
<!DOCTYPE html>
<html>

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

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

      transition: height 1s;
    }
  </style>
</head>

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

</html>
```

-- 
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