title: Transition max-height with TailwindCSS arbitrary values
body: <p>I'm trying to animate the max-height of a div from 0 to 100% using Tailwind's arbitrary values feature, but it's not working:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>document.getElementById("toggle").addEventListener("click", () =&gt; {
    document.getElementById("txt").classList.toggle("max-h-full");
    document.getElementById("txt").classList.toggle("max-h-0");
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdn.tailwindcss.com"&gt;&lt;/script&gt;
  &lt;button id="toggle" class="m-3 p-2 border hover:bg-slate-300"&gt;Toggle text&lt;/button&gt;
  &lt;p id="txt" class="m-3 border overflow-hidden max-h-full transition-[max-height] ease-out"&gt;
    This is a text.&lt;br&gt;That can be collapsed.&lt;br&gt;Or expanded.&lt;br&gt;And so forth.&lt;br&gt;Et cetera.
  &lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>It just collapses and expands instantly, without any transition of the <code>max-height</code>.</p>
  <p>The weird thing is that I do see the right properties being set in the developer tools:</p>
  <pre><code>transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  transition-property: max-height;
  transition-duration: 150ms;
  </code></pre>
  <p>Plus of course the <code>max-height</code>.</p>
  <p>What else do I need to set or configure to make it transition?</p>